home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / faq / comp / macintos / programm < prev    next >
Mailbox/MIME Entity  |  1994-04-11  |  62.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ISO-8859 text default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 62 6c | 6f 6f 6d 2d 62 65 61 63 |Path: bl|oom-beac|
|00000010| 6f 6e 2e 6d 69 74 2e 65 | 64 75 21 68 6f 6f 6b 75 |on.mit.e|du!hooku|
|00000020| 70 21 6e 65 77 73 2e 6d | 6f 6e 65 6e 67 2e 6d 65 |p!news.m|oneng.me|
|00000030| 69 2e 63 6f 6d 21 68 6f | 77 6c 61 6e 64 2e 72 65 |i.com!ho|wland.re|
|00000040| 73 74 6f 6e 2e 61 6e 73 | 2e 6e 65 74 21 45 55 2e |ston.ans|.net!EU.|
|00000050| 6e 65 74 21 73 75 6e 69 | 63 21 74 72 61 6e 65 2e |net!suni|c!trane.|
|00000060| 75 6e 69 6e 65 74 74 2e | 6e 6f 21 6e 61 63 2e 6e |uninett.|no!nac.n|
|00000070| 6f 21 6e 65 77 73 2e 6b | 74 68 2e 73 65 21 68 65 |o!news.k|th.se!he|
|00000080| 6d 75 6c 2e 6e 61 64 61 | 2e 6b 74 68 2e 73 65 21 |mul.nada|.kth.se!|
|00000090| 64 38 38 2d 6a 77 61 0a | 46 72 6f 6d 3a 20 64 38 |d88-jwa.|From: d8|
|000000a0| 38 2d 6a 77 61 40 68 65 | 6d 75 6c 2e 6e 61 64 61 |8-jwa@he|mul.nada|
|000000b0| 2e 6b 74 68 2e 73 65 20 | 28 4a 6f 6e 20 57 e4 74 |.kth.se |(Jon W.t|
|000000c0| 74 65 29 0a 4e 65 77 73 | 67 72 6f 75 70 73 3a 20 |te).News|groups: |
|000000d0| 63 6f 6d 70 2e 73 79 73 | 2e 6d 61 63 2e 70 72 6f |comp.sys|.mac.pro|
|000000e0| 67 72 61 6d 6d 65 72 2c | 63 6f 6d 70 2e 61 6e 73 |grammer,|comp.ans|
|000000f0| 77 65 72 73 2c 6e 65 77 | 73 2e 61 6e 73 77 65 72 |wers,new|s.answer|
|00000100| 73 0a 53 75 62 6a 65 63 | 74 3a 20 54 68 65 20 4d |s.Subjec|t: The M|
|00000110| 61 63 20 50 72 6f 67 72 | 61 6d 6d 69 6e 67 20 50 |ac Progr|amming P|
|00000120| 75 62 6c 69 63 20 44 6f | 6d 61 69 6e 20 46 41 51 |ublic Do|main FAQ|
|00000130| 20 41 6e 73 77 65 72 20 | 73 68 65 65 74 2e 0a 46 | Answer |sheet..F|
|00000140| 6f 6c 6c 6f 77 75 70 2d | 54 6f 3a 20 63 6f 6d 70 |ollowup-|To: comp|
|00000150| 2e 73 79 73 2e 6d 61 63 | 2e 70 72 6f 67 72 61 6d |.sys.mac|.program|
|00000160| 6d 65 72 0a 44 61 74 65 | 3a 20 31 31 20 41 70 72 |mer.Date|: 11 Apr|
|00000170| 20 31 39 39 34 20 30 39 | 3a 31 33 3a 35 30 20 47 | 1994 09|:13:50 G|
|00000180| 4d 54 0a 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |MT.Organ|ization:|
|00000190| 20 54 68 65 20 52 6f 79 | 61 6c 20 49 6e 73 74 69 | The Roy|al Insti|
|000001a0| 74 75 74 65 20 6f 66 20 | 54 65 63 68 6e 6f 6c 6f |tute of |Technolo|
|000001b0| 67 79 0a 4c 69 6e 65 73 | 3a 20 31 36 32 31 0a 41 |gy.Lines|: 1621.A|
|000001c0| 70 70 72 6f 76 65 64 3a | 20 6e 65 77 73 2d 61 6e |pproved:| news-an|
|000001d0| 73 77 65 72 73 2d 72 65 | 71 75 65 73 74 40 4d 49 |swers-re|quest@MI|
|000001e0| 54 2e 45 64 75 0a 45 78 | 70 69 72 65 73 3a 20 31 |T.Edu.Ex|pires: 1|
|000001f0| 20 4d 61 79 20 39 34 20 | 30 30 3a 30 30 3a 30 30 | May 94 |00:00:00|
|00000200| 20 47 4d 54 0a 4d 65 73 | 73 61 67 65 2d 49 44 3a | GMT.Mes|sage-ID:|
|00000210| 20 3c 32 6f 62 34 63 65 | 24 38 6c 30 40 6e 65 77 | <2ob4ce|$8l0@new|
|00000220| 73 2e 6b 74 68 2e 73 65 | 3e 0a 4e 4e 54 50 2d 50 |s.kth.se|>.NNTP-P|
|00000230| 6f 73 74 69 6e 67 2d 48 | 6f 73 74 3a 20 68 65 6d |osting-H|ost: hem|
|00000240| 75 6c 2e 6e 61 64 61 2e | 6b 74 68 2e 73 65 0a 4d |ul.nada.|kth.se.M|
|00000250| 69 6d 65 2d 56 65 72 73 | 69 6f 6e 3a 20 31 2e 30 |ime-Vers|ion: 1.0|
|00000260| 0a 43 6f 6e 74 65 6e 74 | 2d 54 79 70 65 3a 20 74 |.Content|-Type: t|
|00000270| 65 78 74 2f 70 6c 61 69 | 6e 3b 20 63 68 61 72 73 |ext/plai|n; chars|
|00000280| 65 74 3d 69 73 6f 2d 38 | 38 35 39 2d 31 0a 43 6f |et=iso-8|859-1.Co|
|00000290| 6e 74 65 6e 74 2d 54 72 | 61 6e 73 66 65 72 2d 45 |ntent-Tr|ansfer-E|
|000002a0| 6e 63 6f 64 69 6e 67 3a | 20 38 62 69 74 0a 58 72 |ncoding:| 8bit.Xr|
|000002b0| 65 66 3a 20 62 6c 6f 6f | 6d 2d 62 65 61 63 6f 6e |ef: bloo|m-beacon|
|000002c0| 2e 6d 69 74 2e 65 64 75 | 20 63 6f 6d 70 2e 73 79 |.mit.edu| comp.sy|
|000002d0| 73 2e 6d 61 63 2e 70 72 | 6f 67 72 61 6d 6d 65 72 |s.mac.pr|ogrammer|
|000002e0| 3a 34 34 39 34 36 20 63 | 6f 6d 70 2e 61 6e 73 77 |:44946 c|omp.answ|
|000002f0| 65 72 73 3a 34 38 35 31 | 20 6e 65 77 73 2e 61 6e |ers:4851| news.an|
|00000300| 73 77 65 72 73 3a 31 37 | 38 39 35 0a 0a 41 72 63 |swers:17|895..Arc|
|00000310| 68 69 76 65 2d 6e 61 6d | 65 3a 20 6d 61 63 69 6e |hive-nam|e: macin|
|00000320| 74 6f 73 68 2f 70 72 6f | 67 72 61 6d 6d 69 6e 67 |tosh/pro|gramming|
|00000330| 2d 66 61 71 20 0a 0a 54 | 68 65 20 50 75 62 6c 69 |-faq ..T|he Publi|
|00000340| 63 20 44 6f 6d 61 69 6e | 20 4d 61 63 20 50 72 6f |c Domain| Mac Pro|
|00000350| 67 72 61 6d 6d 69 6e 67 | 20 46 41 51 20 41 6e 73 |gramming| FAQ Ans|
|00000360| 77 65 72 20 73 68 65 65 | 74 2e 0a 4c 61 73 74 20 |wer shee|t..Last |
|00000370| 75 70 64 61 74 65 3a 20 | 39 33 31 30 32 33 0a 0a |update: |931023..|
|00000380| 54 68 69 73 20 73 68 65 | 65 74 20 77 61 73 20 73 |This she|et was s|
|00000390| 74 61 72 74 65 64 20 62 | 79 20 61 6e 64 20 69 73 |tarted b|y and is|
|000003a0| 20 70 72 65 73 65 6e 74 | 6c 79 20 6d 61 69 6e 74 | present|ly maint|
|000003b0| 61 69 6e 65 64 20 62 79 | 20 4a 6f 6e 20 0a 57 7b |ained by| Jon .W{|
|000003c0| 74 74 65 2c 20 77 68 6f | 6d 20 79 6f 75 20 6d 61 |tte, who|m you ma|
|000003d0| 79 20 72 65 61 63 68 20 | 61 73 20 68 2b 40 6e 61 |y reach |as h+@na|
|000003e0| 64 61 2e 6b 74 68 2e 73 | 65 2e 20 49 66 20 74 68 |da.kth.s|e. If th|
|000003f0| 65 72 65 20 69 73 20 0a | 61 6e 79 74 68 69 6e 67 |ere is .|anything|
|00000400| 20 79 6f 75 20 66 69 6e | 64 20 65 72 72 61 6e 74 | you fin|d errant|
|00000410| 2c 20 6d 69 73 73 69 6e | 67 20 6f 72 20 69 6e 20 |, missin|g or in |
|00000420| 6e 65 65 64 20 6f 66 20 | 61 6e 20 75 70 64 61 74 |need of |an updat|
|00000430| 65 2c 20 0a 70 6c 65 61 | 73 65 20 73 65 6e 64 20 |e, .plea|se send |
|00000440| 6d 65 20 79 6f 75 72 20 | 73 75 62 6d 69 73 73 69 |me your |submissi|
|00000450| 6f 6e 20 61 6e 64 20 49 | 20 77 69 6c 6c 20 69 6e |on and I| will in|
|00000460| 63 6c 75 64 65 20 69 74 | 20 28 49 20 63 61 6e 27 |clude it| (I can'|
|00000470| 74 20 0a 70 72 6f 6d 69 | 73 65 20 63 6f 72 72 65 |t .promi|se corre|
|00000480| 63 74 20 61 74 74 72 69 | 62 75 74 69 6f 6e 73 2c |ct attri|butions,|
|00000490| 20 62 75 74 20 49 20 77 | 69 6c 6c 20 74 72 79 29 | but I w|ill try)|
|000004a0| 20 41 6c 6c 20 46 41 51 | 20 41 6e 73 77 65 72 20 | All FAQ| Answer |
|000004b0| 0a 73 75 62 6d 69 73 73 | 69 6f 6e 73 20 73 65 6e |.submiss|ions sen|
|000004c0| 74 20 74 6f 20 6d 65 20 | 77 69 6c 6c 20 62 65 20 |t to me |will be |
|000004d0| 63 6f 6e 73 69 64 65 72 | 65 64 20 74 6f 20 62 65 |consider|ed to be|
|000004e0| 20 69 6e 20 74 68 65 20 | 70 75 62 6c 69 63 20 0a | in the |public .|
|000004f0| 64 6f 6d 61 69 6e 20 75 | 6e 6c 65 73 73 20 73 74 |domain u|nless st|
|00000500| 61 74 65 64 20 6f 74 68 | 65 72 77 69 73 65 20 28 |ated oth|erwise (|
|00000510| 69 6e 20 77 68 69 63 68 | 20 63 61 73 65 20 74 68 |in which| case th|
|00000520| 65 79 20 77 69 6c 6c 20 | 6e 6f 74 20 62 65 20 0a |ey will |not be .|
|00000530| 69 6e 63 6c 75 64 65 64 | 20 69 6e 20 74 68 69 73 |included| in this|
|00000540| 20 46 41 51 20 73 68 65 | 65 74 29 20 0a 0a 54 68 | FAQ she|et) ..Th|
|00000550| 69 73 20 73 68 65 65 74 | 20 69 73 20 63 75 72 72 |is sheet| is curr|
|00000560| 65 6e 74 6c 79 20 61 72 | 63 68 69 76 65 64 20 6f |ently ar|chived o|
|00000570| 6e 20 6e 61 64 61 2e 6b | 74 68 2e 73 65 20 77 68 |n nada.k|th.se wh|
|00000580| 65 72 65 20 79 6f 75 20 | 63 61 6e 20 0a 72 65 61 |ere you |can .rea|
|00000590| 63 68 20 69 74 20 75 73 | 69 6e 67 20 61 66 73 20 |ch it us|ing afs |
|000005a0| 61 73 20 2f 61 66 73 2f | 6e 61 64 61 2e 6b 74 68 |as /afs/|nada.kth|
|000005b0| 2e 73 65 2f 70 75 62 6c | 69 63 2f 66 74 70 2f 70 |.se/publ|ic/ftp/p|
|000005c0| 75 62 2f 68 61 63 6b 73 | 2f 6d 61 63 2d 66 0a 61 |ub/hacks|/mac-f.a|
|000005d0| 71 2f 43 53 4d 50 5f 50 | 44 5f 46 41 51 20 6f 72 |q/CSMP_P|D_FAQ or|
|000005e0| 20 75 73 69 6e 67 20 61 | 6e 6f 6e 79 6d 6f 75 73 | using a|nonymous|
|000005f0| 20 46 54 50 20 28 47 49 | 56 45 20 59 4f 55 52 20 | FTP (GI|VE YOUR |
|00000600| 45 2d 4d 41 49 4c 20 41 | 44 44 52 45 53 53 20 0a |E-MAIL A|DDRESS .|
|00000610| 41 53 20 50 41 53 53 57 | 4f 52 44 21 29 20 61 73 |AS PASSW|ORD!) as|
|00000620| 20 70 75 62 2f 68 61 63 | 6b 73 2f 6d 61 63 2d 66 | pub/hac|ks/mac-f|
|00000630| 61 71 2f 43 53 4d 50 5f | 50 44 5f 46 41 51 20 0a |aq/CSMP_|PD_FAQ .|
|00000640| 0a 49 20 77 69 6c 6c 20 | 74 72 79 20 74 6f 20 75 |.I will |try to u|
|00000650| 70 64 61 74 65 20 74 68 | 69 73 20 73 68 65 65 74 |pdate th|is sheet|
|00000660| 20 65 76 65 72 79 20 74 | 68 72 65 65 20 77 65 65 | every t|hree wee|
|00000670| 6b 73 20 6f 72 20 73 6f | 2e 0a 0a 54 68 69 73 20 |ks or so|...This |
|00000680| 73 68 65 65 74 20 69 73 | 20 64 69 76 69 64 65 64 |sheet is| divided|
|00000690| 20 69 6e 74 6f 20 73 65 | 76 65 72 61 6c 20 70 61 | into se|veral pa|
|000006a0| 72 74 73 3b 20 65 61 63 | 68 20 6f 66 20 77 68 69 |rts; eac|h of whi|
|000006b0| 63 68 20 63 6f 76 65 72 | 73 20 61 20 0a 67 65 6e |ch cover|s a .gen|
|000006c0| 65 72 61 6c 20 61 72 65 | 61 20 77 68 69 63 68 20 |eral are|a which |
|000006d0| 6f 66 74 65 6e 20 67 65 | 74 73 20 61 73 6b 65 64 |often ge|ts asked|
|000006e0| 20 61 62 6f 75 74 20 69 | 6e 20 74 68 65 20 49 6e | about i|n the In|
|000006f0| 74 65 72 6e 65 74 20 0a | 6e 65 77 73 67 72 6f 75 |ternet .|newsgrou|
|00000700| 70 20 63 6f 6d 70 2e 73 | 79 73 2e 6d 61 63 2e 70 |p comp.s|ys.mac.p|
|00000710| 72 6f 67 72 61 6d 6d 65 | 72 2e 20 50 6c 65 61 73 |rogramme|r. Pleas|
|00000720| 65 20 64 6f 77 6e 6c 6f | 61 64 20 61 20 63 6f 70 |e downlo|ad a cop|
|00000730| 79 20 6f 66 20 0a 74 68 | 69 73 20 61 6e 73 77 65 |y of .th|is answe|
|00000740| 72 20 73 68 65 65 74 20 | 61 6e 64 20 73 65 61 72 |r sheet |and sear|
|00000750| 63 68 20 69 74 20 62 65 | 66 6f 72 65 20 79 6f 75 |ch it be|fore you|
|00000760| 20 70 6f 73 74 20 74 6f | 20 74 68 65 20 27 6e 65 | post to| the 'ne|
|00000770| 74 2c 20 74 6f 20 0a 68 | 65 6c 70 20 72 65 64 75 |t, to .h|elp redu|
|00000780| 63 65 20 62 61 6e 64 77 | 69 64 74 68 2e 20 0a 0a |ce bandw|idth. ..|
|00000790| 54 68 65 72 65 20 69 73 | 20 4e 4f 20 6f 72 20 56 |There is| NO or V|
|000007a0| 45 52 59 20 4c 49 4d 49 | 54 45 44 20 65 72 72 6f |ERY LIMI|TED erro|
|000007b0| 72 20 63 68 65 63 6b 69 | 6e 67 20 69 6e 20 74 68 |r checki|ng in th|
|000007c0| 65 73 65 20 63 6f 64 65 | 20 0a 65 78 61 6d 70 6c |ese code| .exampl|
|000007d0| 65 73 2c 20 46 4f 52 20 | 42 52 45 56 49 54 59 20 |es, FOR |BREVITY |
|000007e0| 4f 4e 4c 59 2e 20 59 6f | 75 20 73 68 6f 75 6c 64 |ONLY. Yo|u should|
|000007f0| 20 6d 61 6b 65 20 73 75 | 72 65 20 79 6f 75 20 41 | make su|re you A|
|00000800| 4c 57 41 59 53 20 0a 63 | 68 65 63 6b 20 41 4c 4c |LWAYS .c|heck ALL|
|00000810| 20 72 65 74 75 72 6e 20 | 63 6f 64 65 73 2c 20 61 | return |codes, a|
|00000820| 6e 64 20 68 61 6e 64 6c | 65 20 61 6e 79 20 74 68 |nd handl|e any th|
|00000830| 61 74 20 79 6f 75 20 61 | 72 65 20 6e 6f 74 20 70 |at you a|re not p|
|00000840| 72 65 70 61 72 65 64 20 | 0a 74 6f 20 64 65 61 6c |repared |.to deal|
|00000850| 20 77 69 74 68 20 61 70 | 70 72 6f 70 72 69 61 74 | with ap|propriat|
|00000860| 65 6c 79 2e 20 0a 0a 54 | 68 65 20 63 6f 64 69 6e |ely. ..T|he codin|
|00000870| 67 20 73 74 79 6c 65 20 | 75 73 65 64 20 69 6e 20 |g style |used in |
|00000880| 74 68 65 20 65 78 61 6d | 70 6c 65 20 43 20 63 6f |the exam|ple C co|
|00000890| 64 65 20 69 73 20 6d 79 | 20 6f 77 6e 2c 20 61 6e |de is my| own, an|
|000008a0| 64 20 0a 79 6f 75 27 6c | 6c 20 68 61 76 65 20 74 |d .you'l|l have t|
|000008b0| 6f 20 6c 69 76 65 20 77 | 69 74 68 20 69 74 2e 0a |o live w|ith it..|
|000008c0| 0a 54 68 65 20 67 72 6f | 75 70 73 20 61 72 65 20 |.The gro|ups are |
|000008d0| 28 79 6f 75 20 6d 61 79 | 20 73 65 61 72 63 68 20 |(you may| search |
|000008e0| 66 6f 72 20 2a 3c 6e 75 | 6d 62 65 72 3e 2a 20 74 |for *<nu|mber>* t|
|000008f0| 6f 20 6a 75 6d 70 20 64 | 69 72 65 63 74 6c 79 20 |o jump d|irectly |
|00000900| 0a 74 6f 20 61 20 67 72 | 6f 75 70 20 77 69 74 68 |.to a gr|oup with|
|00000910| 20 69 74 73 20 71 75 65 | 73 74 69 6f 6e 73 20 61 | its que|stions a|
|00000920| 6e 64 20 61 6e 73 77 65 | 72 73 29 20 0a 0a 30 29 |nd answe|rs) ..0)|
|00000930| 20 44 65 76 65 6c 6f 70 | 6d 65 6e 74 20 61 6e 64 | Develop|ment and|
|00000940| 20 64 65 62 75 67 67 69 | 6e 67 20 74 6f 6f 6c 73 | debuggi|ng tools|
|00000950| 20 61 6e 64 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 | and doc|umentati|
|00000960| 6f 6e 20 66 6f 72 20 74 | 68 65 20 4d 61 63 20 0a |on for t|he Mac .|
|00000970| 31 29 20 46 69 6c 65 73 | 20 61 6e 64 20 74 68 65 |1) Files| and the|
|00000980| 20 46 69 6c 65 20 4d 61 | 6e 61 67 65 72 20 0a 32 | File Ma|nager .2|
|00000990| 29 20 53 65 72 69 61 6c | 20 70 6f 72 74 73 20 0a |) Serial| ports .|
|000009a0| 33 29 20 54 43 50 2f 49 | 50 20 61 6e 64 20 73 6f |3) TCP/I|P and so|
|000009b0| 63 6b 65 74 73 20 0a 34 | 29 20 41 70 70 6c 65 45 |ckets .4|) AppleE|
|000009c0| 76 65 6e 74 73 20 61 6e | 64 20 74 68 65 20 41 70 |vents an|d the Ap|
|000009d0| 70 6c 65 20 4f 62 6a 65 | 63 74 20 4d 6f 64 65 6c |ple Obje|ct Model|
|000009e0| 20 0a 35 29 20 41 70 70 | 6c 65 53 63 72 69 70 74 | .5) App|leScript|
|000009f0| 0a 36 29 20 44 72 61 77 | 69 6e 67 20 75 73 69 6e |.6) Draw|ing usin|
|00000a00| 67 20 51 75 69 63 6b 44 | 72 61 77 20 0a 37 29 20 |g QuickD|raw .7) |
|00000a10| 44 72 61 77 69 6e 67 20 | 4e 4f 54 20 75 73 69 6e |Drawing |NOT usin|
|00000a20| 67 20 51 75 69 63 6b 44 | 72 61 77 20 28 61 6b 61 |g QuickD|raw (aka|
|00000a30| 20 64 69 72 65 63 74 6c | 79 20 74 6f 20 73 63 72 | directl|y to scr|
|00000a40| 65 65 6e 29 20 0a 38 29 | 20 43 61 63 68 65 20 69 |een) .8)| Cache i|
|00000a50| 73 73 75 65 73 20 61 6e | 64 20 6f 74 68 65 72 20 |ssues an|d other |
|00000a60| 70 72 6f 63 65 73 73 6f | 72 20 64 69 66 66 65 72 |processo|r differ|
|00000a70| 65 6e 63 65 73 20 0a 39 | 29 20 57 68 61 74 20 61 |ences .9|) What a|
|00000a80| 62 6f 75 74 20 70 72 65 | 2d 65 6d 70 74 69 76 65 |bout pre|-emptive|
|00000a90| 20 6d 75 6c 74 69 74 61 | 73 6b 69 6e 67 3f 20 0a | multita|sking? .|
|00000aa0| 31 30 29 20 48 61 6e 64 | 6c 65 73 3b 20 74 68 65 |10) Hand|les; the|
|00000ab0| 79 20 61 72 65 20 64 72 | 69 76 69 6e 67 20 6d 65 |y are dr|iving me|
|00000ac0| 20 63 72 61 7a 79 3b 20 | 4d 65 6d 6f 72 79 20 69 | crazy; |Memory i|
|00000ad0| 73 73 75 65 73 20 0a 31 | 31 29 20 5f 47 65 73 74 |ssues .1|1) _Gest|
|00000ae0| 61 6c 74 20 61 6e 64 20 | 63 6f 6d 70 61 74 69 62 |alt and |compatib|
|00000af0| 69 6c 69 74 79 20 0a 31 | 32 29 20 53 74 61 6e 64 |ility .1|2) Stand|
|00000b00| 61 6c 6f 6e 65 20 63 6f | 64 65 20 61 6e 64 20 64 |alone co|de and d|
|00000b10| 79 6e 61 6d 69 63 20 6c | 69 6e 6b 69 6e 67 20 0a |ynamic l|inking .|
|00000b20| 31 33 29 20 4b 65 79 62 | 6f 61 72 64 20 26 20 4d |13) Keyb|oard & M|
|00000b30| 6f 75 73 65 20 66 6f 72 | 20 47 61 6d 65 73 20 61 |ouse for| Games a|
|00000b40| 6e 64 20 53 63 72 65 65 | 6e 20 53 61 76 65 72 73 |nd Scree|n Savers|
|00000b50| 20 0a 31 34 29 20 51 75 | 69 63 6b 54 69 6d 65 20 | .14) Qu|ickTime |
|00000b60| 0a 31 35 29 20 57 69 6e | 64 6f 77 73 2c 20 4d 65 |.15) Win|dows, Me|
|00000b70| 6e 75 73 2c 20 44 69 61 | 6c 6f 67 73 0a 31 36 29 |nus, Dia|logs.16)|
|00000b80| 20 49 63 65 20 43 72 65 | 61 6d 20 61 6e 64 20 46 | Ice Cre|am and F|
|00000b90| 72 6f 7a 65 6e 20 59 6f | 67 68 75 72 74 20 0a 0a |rozen Yo|ghurt ..|
|00000ba0| 2a 30 2a 20 44 65 76 65 | 6c 6f 70 6d 65 6e 74 20 |*0* Deve|lopment |
|00000bb0| 61 6e 64 20 64 65 62 75 | 67 67 69 6e 67 20 74 6f |and debu|gging to|
|00000bc0| 6f 6c 73 20 66 6f 72 20 | 74 68 65 20 4d 61 63 69 |ols for |the Maci|
|00000bd0| 6e 74 6f 73 68 20 0a 0a | 30 2e 31 29 20 51 3a 20 |ntosh ..|0.1) Q: |
|00000be0| 57 68 61 74 20 64 6f 20 | 49 20 6e 65 65 64 20 74 |What do |I need t|
|00000bf0| 6f 20 73 74 61 72 74 20 | 77 72 69 74 69 6e 67 20 |o start |writing |
|00000c00| 4d 61 63 69 6e 74 6f 73 | 68 20 73 6f 66 74 77 61 |Macintos|h softwa|
|00000c10| 72 65 3f 20 0a 0a 41 3a | 20 41 20 4d 61 63 2c 20 |re? ..A:| A Mac, |
|00000c20| 61 20 6c 6f 74 20 6f 66 | 20 74 69 6d 65 2c 20 61 |a lot of| time, a|
|00000c30| 6e 64 20 61 20 66 65 77 | 20 68 75 6e 64 72 65 64 |nd a few| hundred|
|00000c40| 20 24 2e 20 41 6c 74 68 | 6f 75 67 68 20 79 6f 75 | $. Alth|ough you|
|00000c50| 20 63 61 6e 20 0a 64 65 | 76 65 6c 6f 70 20 73 6f | can .de|velop so|
|00000c60| 66 74 77 61 72 65 20 6f | 6e 20 61 20 43 6c 61 73 |ftware o|n a Clas|
|00000c70| 73 69 63 2d 74 79 70 65 | 20 6d 61 63 68 69 6e 65 |sic-type| machine|
|00000c80| 2c 20 69 74 20 69 73 20 | 6e 6f 74 20 74 6f 20 62 |, it is |not to b|
|00000c90| 65 20 0a 61 74 74 65 6d | 70 74 65 64 20 62 79 20 |e .attem|pted by |
|00000ca0| 74 68 65 20 77 65 61 6b | 20 6f 66 20 68 65 61 72 |the weak| of hear|
|00000cb0| 74 20 6f 72 20 73 74 72 | 65 73 73 65 64 20 6f 66 |t or str|essed of|
|00000cc0| 20 74 69 6d 65 2e 20 49 | 66 20 79 6f 75 27 72 65 | time. I|f you're|
|00000cd0| 20 0a 64 6f 69 6e 67 20 | 70 61 69 64 20 77 6f 72 | .doing |paid wor|
|00000ce0| 6b 20 61 6e 64 2f 6f 72 | 20 77 6f 72 6b 20 66 6f |k and/or| work fo|
|00000cf0| 72 20 61 20 63 6f 6d 70 | 61 6e 79 2c 20 61 20 51 |r a comp|any, a Q|
|00000d00| 75 61 64 72 61 2d 63 6c | 61 73 73 20 0a 6d 61 63 |uadra-cl|ass .mac|
|00000d10| 68 69 6e 65 20 6f 72 20 | 43 65 6e 74 72 69 73 20 |hine or |Centris |
|00000d20| 36 35 30 20 6f 72 20 62 | 65 74 74 65 72 20 69 73 |650 or b|etter is|
|00000d30| 20 61 6c 6d 6f 73 74 20 | 61 20 6d 75 73 74 3b 20 | almost |a must; |
|00000d40| 72 65 6d 65 6d 62 65 72 | 20 74 68 61 74 20 0a 79 |remember| that .y|
|00000d50| 6f 75 72 20 74 69 6d 65 | 20 63 6f 73 74 73 20 79 |our time| costs y|
|00000d60| 6f 75 72 20 65 6d 70 6c | 6f 79 65 72 20 6d 75 63 |our empl|oyer muc|
|00000d70| 68 20 6d 6f 72 65 20 74 | 68 61 6e 20 6a 75 73 74 |h more t|han just|
|00000d80| 20 79 6f 75 72 20 73 61 | 6c 61 72 79 2e 20 38 20 | your sa|lary. 8 |
|00000d90| 0a 4d 42 20 69 73 20 61 | 20 6d 69 6e 69 6d 75 6d |.MB is a| minimum|
|00000da0| 20 74 6f 20 72 75 6e 20 | 61 74 20 61 6c 6c 20 63 | to run |at all c|
|00000db0| 6f 6d 66 6f 72 74 61 62 | 6c 79 2c 20 61 6e 64 20 |omfortab|ly, and |
|00000dc0| 56 69 72 74 75 61 6c 20 | 4d 65 6d 6f 72 79 20 69 |Virtual |Memory i|
|00000dd0| 73 20 0a 6e 6f 74 20 73 | 75 69 74 65 64 20 66 6f |s .not s|uited fo|
|00000de0| 72 20 64 65 76 65 6c 6f | 70 6d 65 6e 74 20 77 6f |r develo|pment wo|
|00000df0| 72 6b 2e 20 53 69 6d 69 | 6c 61 72 6c 79 3b 20 69 |rk. Simi|larly; i|
|00000e00| 66 20 79 6f 75 20 64 6f | 6e 27 74 20 68 61 76 65 |f you do|n't have|
|00000e10| 20 61 74 20 0a 6c 65 61 | 73 74 20 32 30 20 4d 42 | at .lea|st 20 MB|
|00000e20| 20 66 72 65 65 20 6f 6e | 20 79 6f 75 72 20 68 61 | free on| your ha|
|00000e30| 72 64 20 64 69 73 6b 20 | 28 34 30 20 4d 42 20 66 |rd disk |(40 MB f|
|00000e40| 6f 72 20 4d 50 57 29 20 | 79 6f 75 20 6e 65 65 64 |or MPW) |you need|
|00000e50| 20 74 6f 20 0a 62 75 79 | 20 6d 6f 72 65 20 73 70 | to .buy| more sp|
|00000e60| 61 63 65 2e 20 0a 0a 59 | 6f 75 20 6e 65 65 64 20 |ace. ..Y|ou need |
|00000e70| 61 20 64 65 76 65 6c 6f | 70 6d 65 6e 74 20 73 79 |a develo|pment sy|
|00000e80| 73 74 65 6d 20 73 75 63 | 68 20 61 73 20 54 68 69 |stem suc|h as Thi|
|00000e90| 6e 6b 20 43 2c 20 43 6f | 64 65 57 61 72 72 69 6f |nk C, Co|deWarrio|
|00000ea0| 72 20 43 2b 2b 2c 20 0a | 4d 50 57 20 43 20 6f 72 |r C++, .|MPW C or|
|00000eb0| 20 50 72 6f 67 72 61 70 | 68 2c 20 79 6f 75 20 6e | Prograp|h, you n|
|00000ec0| 65 65 64 20 61 74 20 6c | 65 61 73 74 20 73 6f 6d |eed at l|east som|
|00000ed0| 65 20 6f 66 20 74 68 65 | 20 4e 65 77 20 49 6e 73 |e of the| New Ins|
|00000ee0| 69 64 65 20 4d 61 63 20 | 0a 62 6f 6f 6b 73 20 28 |ide Mac |.books (|
|00000ef0| 54 6f 6f 6c 62 6f 78 20 | 45 73 73 65 6e 74 69 61 |Toolbox |Essentia|
|00000f00| 6c 73 2c 20 46 69 6c 65 | 73 2c 20 4d 65 6d 6f 72 |ls, File|s, Memor|
|00000f10| 79 20 63 6f 6d 65 20 74 | 6f 20 6d 69 6e 64 29 20 |y come t|o mind) |
|00000f20| 61 6e 64 20 61 20 0a 67 | 6f 6f 64 20 65 6e 74 72 |and a .g|ood entr|
|00000f30| 79 2d 6c 65 76 65 6c 20 | 74 68 69 72 64 2d 70 61 |y-level |third-pa|
|00000f40| 72 74 79 20 62 6f 6f 6b | 20 6d 61 79 20 68 65 6c |rty book| may hel|
|00000f50| 70 2e 20 0a 0a 4f 6e 63 | 65 20 79 6f 75 20 61 72 |p. ..Onc|e you ar|
|00000f60| 65 20 75 70 20 74 6f 20 | 73 70 65 65 64 20 6f 6e |e up to |speed on|
|00000f70| 20 74 68 65 20 67 65 6e | 65 72 61 6c 20 6c 61 79 | the gen|eral lay|
|00000f80| 6f 75 74 20 6f 66 20 74 | 68 65 20 4d 61 63 20 61 |out of t|he Mac a|
|00000f90| 6e 64 20 0a 69 74 73 20 | 74 6f 6f 6c 62 6f 78 65 |nd .its |toolboxe|
|00000fa0| 73 2c 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 63 61 |s, you s|hould ca|
|00000fb0| 6c 6c 20 41 50 44 41 20 | 61 6e 64 20 6f 72 64 65 |ll APDA |and orde|
|00000fc0| 72 20 74 68 65 20 6d 6f | 6e 74 68 6c 79 20 0a 64 |r the mo|nthly .d|
|00000fd0| 65 76 65 6c 6f 70 65 72 | 20 6d 61 69 6c 69 6e 67 |eveloper| mailing|
|00000fe0| 2c 20 77 68 69 63 68 20 | 77 69 6c 6c 20 67 69 76 |, which |will giv|
|00000ff0| 65 20 79 6f 75 20 61 20 | 43 44 20 63 68 6f 63 6b |e you a |CD chock|
|00001000| 20 66 75 6c 6c 20 6f 66 | 20 0a 64 6f 63 75 6d 65 | full of| .docume|
|00001010| 6e 74 61 74 69 6f 6e 2c | 20 75 74 69 6c 69 74 69 |ntation,| utiliti|
|00001020| 65 73 20 61 6e 64 20 73 | 79 73 74 65 6d 20 73 6f |es and s|ystem so|
|00001030| 66 74 77 61 72 65 20 6f | 6e 63 65 20 61 20 6d 6f |ftware o|nce a mo|
|00001040| 6e 74 68 2e 20 59 6f 75 | 20 0a 77 69 6c 6c 20 61 |nth. You| .will a|
|00001050| 6c 73 6f 2c 20 6f 62 76 | 69 6f 75 73 6c 79 2c 20 |lso, obv|iously, |
|00001060| 6e 65 65 64 20 61 20 43 | 44 20 70 6c 61 79 65 72 |need a C|D player|
|00001070| 3b 20 6f 6e 65 20 6f 66 | 20 77 68 69 63 68 20 41 |; one of| which A|
|00001080| 70 70 6c 65 27 73 20 6f | 77 6e 20 0a 43 44 33 30 |pple's o|wn .CD30|
|00001090| 30 20 69 73 20 61 20 76 | 65 72 79 20 67 6f 6f 64 |0 is a v|ery good|
|000010a0| 20 62 75 79 20 61 74 20 | 74 68 65 20 74 69 6d 65 | buy at |the time|
|000010b0| 20 6f 66 20 77 72 69 74 | 69 6e 67 20 74 68 69 73 | of writ|ing this|
|000010c0| 2e 20 49 66 20 79 6f 75 | 20 0a 64 6f 6e 27 74 20 |. If you| .don't |
|000010d0| 68 61 76 65 20 74 68 65 | 20 64 6f 75 67 68 20 66 |have the| dough f|
|000010e0| 6f 72 20 74 68 65 20 6d | 6f 6e 74 68 6c 79 20 6d |or the m|onthly m|
|000010f0| 61 69 6c 69 6e 67 20 28 | 24 32 35 30 2f 79 65 61 |ailing (|$250/yea|
|00001100| 72 29 20 79 6f 75 20 63 | 61 6e 20 0a 6f 72 64 65 |r) you c|an .orde|
|00001110| 72 20 61 20 5f 64 65 76 | 65 6c 6f 70 5f 20 73 75 |r a _dev|elop_ su|
|00001120| 62 73 63 72 69 70 74 69 | 6f 6e 3b 20 74 68 69 73 |bscripti|on; this|
|00001130| 20 71 75 61 72 74 65 72 | 6c 79 20 6d 61 67 61 7a | quarter|ly magaz|
|00001140| 69 6e 65 20 0a 28 24 33 | 30 2d 24 35 30 2f 79 65 |ine .($3|0-$50/ye|
|00001150| 61 72 29 20 63 6f 6d 65 | 73 20 77 69 74 68 20 61 |ar) come|s with a|
|00001160| 20 43 44 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 61 | CD cont|aining a|
|00001170| 6c 6c 20 49 6e 73 69 64 | 65 20 4d 61 63 20 0a 64 |ll Insid|e Mac .d|
|00001180| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 2e 0a 0a 41 |ocumenta|tion...A|
|00001190| 6e 6f 74 68 65 72 20 74 | 6f 6f 6c 20 77 68 69 63 |nother t|ool whic|
|000011a0| 68 20 6d 61 6e 79 20 66 | 69 6e 64 20 61 20 6d 75 |h many f|ind a mu|
|000011b0| 73 74 2d 68 61 76 65 20 | 69 73 20 74 68 65 20 54 |st-have |is the T|
|000011c0| 68 69 6e 6b 20 52 65 66 | 65 72 65 6e 63 65 20 0a |hink Ref|erence .|
|000011d0| 76 65 72 73 69 6f 6e 20 | 32 2e 30 2e 31 2c 20 63 |version |2.0.1, c|
|000011e0| 6f 6e 74 61 69 6e 69 6e | 67 20 72 65 66 65 72 65 |ontainin|g refere|
|000011f0| 6e 63 65 20 6d 61 74 65 | 72 69 61 6c 20 6f 6e 20 |nce mate|rial on |
|00001200| 74 68 65 20 6d 6f 73 74 | 20 75 73 65 64 20 0a 70 |the most| used .p|
|00001210| 61 72 74 73 20 6f 66 20 | 74 68 65 20 4d 61 63 20 |arts of |the Mac |
|00001220| 74 6f 6f 6c 62 6f 78 20 | 77 69 74 68 20 6c 69 67 |toolbox |with lig|
|00001230| 68 74 6e 69 6e 67 2d 66 | 61 73 74 20 6c 6f 6f 6b |htning-f|ast look|
|00001240| 2d 75 70 20 61 6e 64 20 | 6d 6f 73 74 6c 79 20 0a |-up and |mostly .|
|00001250| 63 6f 72 72 65 63 74 20 | 75 73 61 67 65 20 68 69 |correct |usage hi|
|00001260| 6e 74 73 20 61 6e 64 20 | 63 6f 64 65 20 73 6e 69 |nts and |code sni|
|00001270| 70 70 65 74 73 2e 20 0a | 0a 30 2e 32 29 20 51 3a |ppets. .|.0.2) Q:|
|00001280| 20 57 68 61 74 20 69 73 | 20 74 68 65 20 6d 6f 73 | What is| the mos|
|00001290| 74 20 75 73 65 64 20 4d | 61 63 69 6e 74 6f 73 68 |t used M|acintosh|
|000012a0| 20 64 65 76 65 6c 6f 70 | 6d 65 6e 74 20 6c 61 6e | develop|ment lan|
|000012b0| 67 75 61 67 65 3f 20 0a | 0a 41 3a 20 4f 75 74 20 |guage? .|.A: Out |
|000012c0| 6f 66 20 70 72 6f 64 75 | 63 74 73 20 6f 6e 20 74 |of produ|cts on t|
|000012d0| 68 65 20 6d 61 72 6b 65 | 74 2c 20 49 20 68 61 76 |he marke|t, I hav|
|000012e0| 65 20 6e 6f 20 69 64 65 | 61 3b 20 62 6f 74 68 20 |e no ide|a; both |
|000012f0| 4d 50 57 20 61 6e 64 20 | 0a 54 68 69 6e 6b 20 70 |MPW and |.Think p|
|00001300| 72 6f 64 75 63 74 73 20 | 61 70 70 65 61 72 20 74 |roducts |appear t|
|00001310| 6f 20 62 65 20 75 73 65 | 64 2e 20 4c 61 74 65 6c |o be use|d. Latel|
|00001320| 79 2c 20 43 6f 64 65 57 | 61 72 72 69 6f 72 20 68 |y, CodeW|arrior h|
|00001330| 61 73 20 63 6f 6d 65 20 | 0a 6f 75 74 20 6f 66 20 |as come |.out of |
|00001340| 6e 6f 77 68 65 72 65 20 | 61 6e 64 20 67 72 61 62 |nowhere |and grab|
|00001350| 62 65 64 20 61 20 6c 61 | 72 67 65 20 73 68 61 72 |bed a la|rge shar|
|00001360| 65 20 6f 66 20 74 68 65 | 20 6d 61 72 6b 65 74 20 |e of the| market |
|00001370| 0a 76 69 73 69 62 69 6c | 69 74 79 20 62 65 63 61 |.visibil|ity beca|
|00001380| 75 73 65 20 74 68 65 79 | 20 68 61 76 65 20 74 68 |use they| have th|
|00001390| 65 20 66 61 73 74 65 73 | 74 20 63 6f 6d 70 69 6c |e fastes|t compil|
|000013a0| 65 72 20 61 6e 64 20 74 | 68 65 79 20 0a 67 65 6e |er and t|hey .gen|
|000013b0| 65 72 61 74 65 20 50 6f | 77 65 72 50 43 20 63 6f |erate Po|werPC co|
|000013c0| 64 65 20 61 73 20 77 65 | 6c 6c 20 61 73 20 36 38 |de as we|ll as 68|
|000013d0| 4b 20 63 6f 64 65 2e 20 | 41 6d 6f 6e 67 20 68 6f |K code. |Among ho|
|000013e0| 62 62 79 69 73 74 73 2c | 20 74 68 65 20 0a 54 68 |bbyists,| the .Th|
|000013f0| 69 6e 6b 20 70 72 6f 64 | 75 63 74 73 20 66 72 6f |ink prod|ucts fro|
|00001400| 6d 20 53 79 6d 61 6e 74 | 65 63 20 61 72 65 20 6d |m Symant|ec are m|
|00001410| 6f 73 74 20 70 6f 70 75 | 6c 61 72 20 62 65 63 61 |ost popu|lar beca|
|00001420| 75 73 65 20 6f 66 20 74 | 68 65 20 6c 6f 77 20 0a |use of t|he low .|
|00001430| 70 72 69 63 65 2c 20 61 | 6e 64 20 73 74 65 65 70 |price, a|nd steep|
|00001440| 20 65 64 75 63 61 74 69 | 6f 6e 61 6c 20 64 69 73 | educati|onal dis|
|00001450| 63 6f 75 6e 74 73 2c 20 | 61 6e 64 2c 20 6f 66 20 |counts, |and, of |
|00001460| 63 6f 75 72 73 65 2c 20 | 74 68 65 20 0a 65 61 73 |course, |the .eas|
|00001470| 69 6c 79 20 61 70 70 72 | 6f 61 63 68 61 62 6c 65 |ily appr|oachable|
|00001480| 20 69 6e 74 65 72 66 61 | 63 65 21 20 0a 0a 54 68 | interfa|ce! ..Th|
|00001490| 65 20 54 68 69 6e 6b 20 | 43 20 6c 69 6e 6b 65 72 |e Think |C linker|
|000014a0| 20 6f 6e 6c 79 20 73 74 | 72 69 70 73 20 64 65 61 | only st|rips dea|
|000014b0| 64 20 63 6f 64 65 20 6f | 6e 20 61 20 46 49 4c 45 |d code o|n a FILE|
|000014c0| 20 6c 65 76 65 6c 20 62 | 61 73 69 73 20 0a 28 61 | level b|asis .(a|
|000014d0| 6e 64 20 74 68 69 73 20 | 69 73 20 77 68 65 6e 20 |nd this |is when |
|000014e0| 79 6f 75 20 74 75 72 6e | 20 6f 6e 20 22 53 6d 61 |you turn| on "Sma|
|000014f0| 72 74 20 4c 69 6e 6b 69 | 6e 67 22 29 20 54 68 65 |rt Linki|ng") The|
|00001500| 20 4d 50 57 20 6c 69 6e | 6b 65 72 20 0a 28 6f 66 | MPW lin|ker .(of|
|00001510| 20 6e 6f 20 73 70 65 63 | 69 66 69 65 64 20 49 51 | no spec|ified IQ|
|00001520| 2c 20 61 73 20 73 6f 6d | 65 6f 6e 65 20 73 6f 20 |, as som|eone so |
|00001530| 65 6c 6f 71 75 65 6e 74 | 6c 79 20 70 75 74 20 69 |eloquent|ly put i|
|00001540| 74 20 3a 2d 29 20 73 74 | 72 69 70 73 20 0a 64 65 |t :-) st|rips .de|
|00001550| 61 64 20 63 6f 64 65 20 | 62 79 20 74 68 65 20 66 |ad code |by the f|
|00001560| 75 6e 63 74 69 6f 6e 2c | 20 61 73 20 64 6f 65 73 |unction,| as does|
|00001570| 20 43 6f 64 65 57 61 72 | 72 69 6f 72 2e 20 54 68 | CodeWar|rior. Th|
|00001580| 61 74 20 6d 61 79 20 62 | 65 20 70 61 72 74 20 0a |at may b|e part .|
|00001590| 6f 66 20 74 68 65 20 72 | 65 61 73 6f 6e 20 74 68 |of the r|eason th|
|000015a0| 65 20 54 68 69 6e 6b 20 | 43 20 6c 69 6e 6b 65 72 |e Think |C linker|
|000015b0| 20 69 73 20 74 65 6e 20 | 74 69 6d 65 73 20 66 61 | is ten |times fa|
|000015c0| 73 74 65 72 20 74 68 61 | 6e 20 74 68 65 20 0a 4d |ster tha|n the .M|
|000015d0| 50 57 20 6c 69 6e 6b 65 | 72 2e 20 0a 0a 49 6e 20 |PW linke|r. ..In |
|000015e0| 74 68 65 20 62 65 67 69 | 6e 6e 69 6e 67 2c 20 74 |the begi|nning, t|
|000015f0| 68 65 20 4d 61 63 20 77 | 61 73 20 70 72 6f 67 72 |he Mac w|as progr|
|00001600| 61 6d 6d 65 64 20 75 73 | 69 6e 67 20 4d 63 36 38 |ammed us|ing Mc68|
|00001610| 30 30 30 20 61 73 73 65 | 6d 62 6c 79 20 0a 6f 72 |000 asse|mbly .or|
|00001620| 20 50 61 73 63 61 6c 3b | 20 74 68 69 73 20 77 61 | Pascal;| this wa|
|00001630| 73 20 72 65 66 6c 65 63 | 74 65 64 20 69 6e 20 74 |s reflec|ted in t|
|00001640| 68 65 20 4f 6c 64 20 49 | 6e 73 69 64 65 20 4d 61 |he Old I|nside Ma|
|00001650| 63 20 76 6f 6c 75 6d 65 | 73 20 0a 77 68 69 63 68 |c volume|s .which|
|00001660| 20 6f 6e 6c 79 20 67 61 | 76 65 20 50 61 73 63 61 | only ga|ve Pasca|
|00001670| 6c 2d 73 74 79 6c 65 20 | 61 6e 64 20 61 73 73 65 |l-style |and asse|
|00001680| 6d 62 6c 79 2d 73 74 79 | 6c 65 20 69 6e 74 65 72 |mbly-sty|le inter|
|00001690| 66 61 63 65 73 20 74 6f | 20 0a 74 68 65 20 4d 61 |faces to| .the Ma|
|000016a0| 63 20 74 6f 6f 6c 62 6f | 78 2e 20 54 68 65 73 65 |c toolbo|x. These|
|000016b0| 20 64 61 79 73 2c 20 41 | 70 70 6c 65 20 74 65 6c | days, A|pple tel|
|000016c0| 6c 73 20 75 73 20 74 6f | 20 75 73 65 20 43 20 6f |ls us to| use C o|
|000016d0| 72 20 65 76 65 6e 20 0a | 62 65 74 74 65 72 20 43 |r even .|better C|
|000016e0| 2b 2b 20 66 6f 72 20 64 | 65 76 65 6c 6f 70 69 6e |++ for d|evelopin|
|000016f0| 67 20 6e 65 77 20 61 70 | 70 6c 69 63 61 74 69 6f |g new ap|plicatio|
|00001700| 6e 73 2c 20 61 73 20 74 | 68 61 74 20 77 69 6c 6c |ns, as t|hat will|
|00001710| 20 73 70 65 65 64 20 0a | 75 70 20 74 68 65 20 74 | speed .|up the t|
|00001720| 72 61 6e 73 69 74 69 6f | 6e 20 74 6f 20 50 6f 77 |ransitio|n to Pow|
|00001730| 65 72 50 43 20 61 6e 64 | 20 61 6c 73 6f 20 63 6f |erPC and| also co|
|00001740| 6d 69 6e 67 20 63 72 6f | 73 73 2d 70 6c 61 74 66 |ming cro|ss-platf|
|00001750| 6f 72 6d 20 0a 65 66 66 | 6f 72 74 73 2e 20 28 4c |orm .eff|orts. (L|
|00001760| 61 6e 67 75 61 67 65 20 | 53 79 73 74 65 6d 73 20 |anguage |Systems |
|00001770| 68 61 76 65 20 61 20 50 | 61 73 63 61 6c 20 66 6f |have a P|ascal fo|
|00001780| 72 20 50 6f 77 65 72 50 | 43 20 70 72 6f 64 75 63 |r PowerP|C produc|
|00001790| 74 20 0a 6e 6f 77 2c 20 | 62 75 74 20 49 20 64 6f |t .now, |but I do|
|000017a0| 6e 27 74 20 6b 6e 6f 77 | 20 61 62 6f 75 74 20 70 |n't know| about p|
|000017b0| 72 69 63 69 6e 67 20 6f | 72 20 71 75 61 6c 69 74 |ricing o|r qualit|
|000017c0| 79 29 0a 0a 54 68 65 72 | 65 20 61 72 65 20 61 6c |y)..Ther|e are al|
|000017d0| 73 6f 20 61 74 20 6c 65 | 61 73 74 20 74 77 6f 20 |so at le|ast two |
|000017e0| 46 6f 72 74 72 61 6e 20 | 63 6f 6d 70 69 6c 65 72 |Fortran |compiler|
|000017f0| 73 2c 20 61 74 20 6c 65 | 61 73 74 20 74 68 72 65 |s, at le|ast thre|
|00001800| 65 20 0a 53 6d 61 6c 6c | 54 61 6c 6b 20 69 6d 70 |e .Small|Talk imp|
|00001810| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 73 20 28 4f 62 |lementat|ions (Ob|
|00001820| 6a 65 63 74 57 6f 72 6b | 73 2c 20 53 6d 61 6c 6c |jectWork|s, Small|
|00001830| 54 61 6c 6b 2f 56 20 61 | 6e 64 20 0a 53 6d 61 6c |Talk/V a|nd .Smal|
|00001840| 6c 54 61 6c 6b 41 67 65 | 6e 74 73 29 2c 20 61 20 |lTalkAge|nts), a |
|00001850| 77 6f 72 6c 64 2d 63 6c | 61 73 73 20 4c 49 53 50 |world-cl|ass LISP|
|00001860| 2f 43 4c 4f 53 20 69 6d | 70 6c 65 6d 65 6e 74 61 |/CLOS im|plementa|
|00001870| 74 69 6f 6e 20 0a 28 4d | 61 63 69 6e 74 6f 73 68 |tion .(M|acintosh|
|00001880| 20 43 6f 6d 6d 6f 6e 20 | 4c 69 73 70 20 32 2e 30 | Common |Lisp 2.0|
|00001890| 29 20 61 6e 64 20 61 20 | 4d 6f 64 75 6c 61 2f 32 |) and a |Modula/2|
|000018a0| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 2e | impleme|ntation.|
|000018b0| 20 0a 41 70 70 61 72 65 | 6e 74 6c 79 2c 20 75 73 | .Appare|ntly, us|
|000018c0| 69 6e 67 20 45 6e 76 79 | 2f 70 61 63 6b 61 67 65 |ing Envy|/package|
|000018d0| 72 2c 20 79 6f 75 20 63 | 61 6e 20 73 74 72 69 70 |r, you c|an strip|
|000018e0| 20 6f 75 74 20 75 6e 75 | 73 65 64 20 63 6f 64 65 | out unu|sed code|
|000018f0| 20 0a 70 72 65 74 74 79 | 20 65 66 66 65 63 74 69 | .pretty| effecti|
|00001900| 76 65 6c 79 20 66 72 6f | 6d 20 44 69 67 69 74 61 |vely fro|m Digita|
|00001910| 6c 6b 20 61 6e 64 20 50 | 50 20 61 70 70 73 2c 20 |lk and P|P apps, |
|00001920| 77 68 69 63 68 20 61 72 | 65 20 74 68 65 6e 20 0a |which ar|e then .|
|00001930| 73 6d 61 6c 6c 65 72 20 | 28 61 6e 64 20 6f 66 20 |smaller |(and of |
|00001940| 63 6f 75 72 73 65 20 6d | 6f 72 65 20 6d 65 6d 6f |course m|ore memo|
|00001950| 72 79 20 65 66 66 69 63 | 69 65 6e 74 29 20 74 68 |ry effic|ient) th|
|00001960| 61 6e 20 43 2b 2b 20 61 | 70 70 73 2e 20 0a 0a 4d |an C++ a|pps. ..M|
|00001970| 65 74 72 6f 77 65 72 6b | 73 20 68 61 76 65 20 61 |etrowerk|s have a|
|00001980| 20 50 61 73 63 61 6c 20 | 61 6e 64 20 61 20 4d 6f | Pascal |and a Mo|
|00001990| 64 75 6c 61 20 49 49 20 | 63 6f 6d 70 69 6c 65 72 |dula II |compiler|
|000019a0| 2e 20 54 68 65 79 27 72 | 65 0a 62 75 69 6c 64 69 |. They'r|e.buildi|
|000019b0| 6e 67 20 43 20 61 6e 64 | 20 43 2b 2b 20 66 6f 72 |ng C and| C++ for|
|000019c0| 20 62 6f 74 68 20 36 38 | 6b 20 61 6e 64 20 63 6f | both 68|k and co|
|000019d0| 6d 69 6e 67 20 50 50 43 | 20 4d 61 63 73 2c 20 61 |ming PPC| Macs, a|
|000019e0| 6e 64 0a 77 69 6c 6c 20 | 61 6c 73 6f 20 68 61 76 |nd.will |also hav|
|000019f0| 65 20 61 20 50 6f 77 65 | 72 50 43 20 50 61 73 63 |e a Powe|rPC Pasc|
|00001a00| 61 6c 2e 0a 0a 43 53 49 | 20 68 61 73 20 4d 61 63 |al...CSI| has Mac|
|00001a10| 46 6f 72 74 68 2c 20 6f | 66 20 77 68 69 63 68 20 |Forth, o|f which |
|00001a20| 49 20 6f 6e 6c 79 20 6b | 6e 6f 77 20 74 68 65 20 |I only k|now the |
|00001a30| 6e 61 6d 65 20 61 6e 64 | 20 73 6f 6d 65 6f 6e 65 |name and| someone|
|00001a40| 20 77 68 6f 20 0a 73 61 | 79 73 20 69 74 27 73 20 | who .sa|ys it's |
|00001a50| 70 72 65 74 74 79 20 67 | 6f 6f 64 2e 0a 0a 54 68 |pretty g|ood...Th|
|00001a60| 65 72 65 20 69 73 20 61 | 6e 6f 74 68 65 72 20 67 |ere is a|nother g|
|00001a70| 6f 6f 64 20 43 6f 6d 6d | 6f 6e 20 4c 69 73 70 20 |ood Comm|on Lisp |
|00001a80| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 3a 20 |implemen|tation: |
|00001a90| 50 72 6f 63 79 6f 6e 20 | 43 6f 6d 6d 6f 6e 20 0a |Procyon |Common .|
|00001aa0| 4c 69 73 70 2e 20 49 20 | 64 6f 6e 27 74 20 6b 6e |Lisp. I |don't kn|
|00001ab0| 6f 77 20 69 66 20 69 74 | 20 69 73 20 61 63 74 69 |ow if it| is acti|
|00001ac0| 76 65 6c 79 20 73 75 70 | 70 6f 72 74 65 64 2c 20 |vely sup|ported, |
|00001ad0| 62 75 74 20 50 72 6f 63 | 79 6f 6e 20 43 4c 20 0a |but Proc|yon CL .|
|00001ae0| 69 73 20 61 6c 73 6f 20 | 61 76 61 69 6c 61 62 6c |is also |availabl|
|00001af0| 65 20 66 6f 72 20 44 4f | 53 2c 20 4f 53 2f 32 20 |e for DO|S, OS/2 |
|00001b00| 61 6e 64 20 57 69 6e 64 | 6f 77 73 20 28 61 73 20 |and Wind|ows (as |
|00001b10| 41 6c 6c 65 67 72 6f 20 | 43 4c 2f 50 43 29 20 0a |Allegro |CL/PC) .|
|00001b20| 61 6e 64 20 61 63 74 69 | 76 65 6c 79 20 64 65 76 |and acti|vely dev|
|00001b30| 65 6c 6f 70 65 64 2e 20 | 0a 0a 30 2e 33 29 20 51 |eloped. |..0.3) Q|
|00001b40| 3a 20 57 68 65 72 65 20 | 64 6f 20 49 20 66 69 6e |: Where |do I fin|
|00001b50| 64 20 61 20 70 75 62 6c | 69 63 20 64 6f 6d 61 69 |d a publ|ic domai|
|00001b60| 6e 20 43 20 63 6f 6d 70 | 69 6c 65 72 20 66 6f 72 |n C comp|iler for|
|00001b70| 20 74 68 65 20 4d 61 63 | 2e 20 0a 49 73 20 74 68 | the Mac|. .Is th|
|00001b80| 65 72 65 20 61 20 47 43 | 43 20 66 6f 72 20 74 68 |ere a GC|C for th|
|00001b90| 65 20 6d 61 63 3f 20 57 | 68 61 74 20 61 62 6f 75 |e mac? W|hat abou|
|00001ba0| 74 20 74 68 65 20 46 53 | 46 20 62 6f 79 63 6f 74 |t the FS|F boycot|
|00001bb0| 74 20 6f 66 20 41 70 70 | 6c 65 20 0a 70 72 6f 64 |t of App|le .prod|
|00001bc0| 75 63 74 73 3f 20 0a 0a | 41 3a 20 54 68 65 72 65 |ucts? ..|A: There|
|00001bd0| 20 69 73 20 6e 6f 20 72 | 65 61 6c 6c 79 20 67 6f | is no r|eally go|
|00001be0| 6f 64 20 73 6f 6c 75 74 | 69 6f 6e 20 66 6f 72 20 |od solut|ion for |
|00001bf0| 61 20 22 66 6f 72 2d 66 | 72 65 65 22 20 43 20 0a |a "for-f|ree" C .|
|00001c00| 64 65 76 65 6c 6f 70 6d | 65 6e 74 20 73 79 73 74 |developm|ent syst|
|00001c10| 65 6d 20 66 6f 72 20 74 | 68 65 20 4d 61 63 2e 20 |em for t|he Mac. |
|00001c20| 47 43 43 20 68 61 73 20 | 62 65 65 6e 20 70 6f 72 |GCC has |been por|
|00001c30| 74 65 64 2c 20 62 75 74 | 20 0a 72 65 71 75 69 72 |ted, but| .requir|
|00001c40| 65 73 20 74 68 65 20 4d | 50 57 20 73 68 65 6c 6c |es the M|PW shell|
|00001c50| 20 61 6e 64 20 4d 50 57 | 20 61 73 73 65 6d 62 6c | and MPW| assembl|
|00001c60| 65 72 20 74 6f 20 72 75 | 6e 3b 20 74 68 65 73 65 |er to ru|n; these|
|00001c70| 20 68 61 76 65 20 74 6f | 20 0a 62 65 20 62 6f 75 | have to| .be bou|
|00001c80| 67 68 74 20 66 72 6f 6d | 20 41 50 44 41 2e 20 54 |ght from| APDA. T|
|00001c90| 68 65 72 65 20 69 73 20 | 61 20 73 74 61 6e 64 61 |here is |a standa|
|00001ca0| 6c 6f 6e 65 20 70 6f 72 | 74 20 6f 66 20 47 43 43 |lone por|t of GCC|
|00001cb0| 20 31 2e 33 37 20 6f 6e | 20 0a 6e 69 63 2e 73 77 | 1.37 on| .nic.sw|
|00001cc0| 69 74 63 68 2e 63 68 3a | 73 6f 66 74 77 61 72 65 |itch.ch:|software|
|00001cd0| 2f 6d 61 63 2f 73 72 63 | 2f 74 68 69 6e 6b 5f 63 |/mac/src|/think_c|
|00001ce0| 2e 20 54 68 65 72 65 20 | 77 61 73 20 61 20 66 72 |. There |was a fr|
|00001cf0| 65 65 6c 79 20 0a 61 76 | 61 69 6c 61 62 6c 65 20 |eely .av|ailable |
|00001d00| 43 20 63 6f 6d 70 69 6c | 65 72 20 63 61 6c 6c 65 |C compil|er calle|
|00001d10| 64 20 48 61 72 76 65 73 | 74 20 43 2c 20 77 68 69 |d Harves|t C, whi|
|00001d20| 63 68 20 77 61 73 20 73 | 6f 6d 65 77 68 61 74 20 |ch was s|omewhat |
|00001d30| 0a 75 6e 73 74 61 62 6c | 65 20 62 75 74 20 75 73 |.unstabl|e but us|
|00001d40| 61 62 6c 65 20 66 6f 72 | 20 73 6d 61 6c 6c 65 72 |able for| smaller|
|00001d50| 20 70 72 6f 67 72 61 6d | 73 3b 20 69 74 20 77 61 | program|s; it wa|
|00001d60| 73 20 61 62 61 6e 64 6f | 6e 65 64 20 62 79 20 0a |s abando|ned by .|
|00001d70| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 61 75 74 |the orig|inal aut|
|00001d80| 68 6f 72 20 45 72 69 63 | 20 57 20 53 69 6e 6b 20 |hor Eric| W Sink |
|00001d90| 62 65 63 61 75 73 65 20 | 6f 66 20 61 20 6c 61 63 |because |of a lac|
|00001da0| 6b 20 6f 66 20 74 69 6d | 65 20 61 6e 64 20 0a 6c |k of tim|e and .l|
|00001db0| 61 74 65 72 20 74 61 6b | 65 6e 20 75 70 20 62 79 |ater tak|en up by|
|00001dc0| 20 74 68 65 20 54 6f 70 | 53 6f 66 74 20 70 72 6f | the Top|Soft pro|
|00001dd0| 6a 65 63 74 2e 0a 0a 54 | 68 65 20 46 53 46 20 62 |ject...T|he FSF b|
|00001de0| 6f 79 63 6f 74 74 20 6f | 66 20 41 70 70 6c 65 20 |oycott o|f Apple |
|00001df0| 70 72 6f 64 75 63 74 73 | 20 6d 65 61 6e 73 20 74 |products| means t|
|00001e00| 68 65 79 20 77 69 6c 6c | 20 6e 6f 74 20 74 61 6c |hey will| not tal|
|00001e10| 6b 20 74 6f 20 0a 79 6f | 75 20 69 66 20 79 6f 75 |k to .yo|u if you|
|00001e20| 20 61 73 6b 20 74 68 65 | 6d 20 66 6f 72 20 68 65 | ask the|m for he|
|00001e30| 6c 70 20 69 6e 20 64 6f | 69 6e 67 20 61 20 4d 61 |lp in do|ing a Ma|
|00001e40| 63 20 70 6f 72 74 2c 20 | 61 6e 64 20 74 68 65 79 |c port, |and they|
|00001e50| 20 77 69 6c 6c 20 0a 6e | 6f 74 20 69 6e 63 6f 72 | will .n|ot incor|
|00001e60| 70 6f 72 61 74 65 20 79 | 6f 75 72 20 63 68 61 6e |porate y|our chan|
|00001e70| 67 65 73 20 69 6e 74 6f | 20 74 68 65 69 72 20 6d |ges into| their m|
|00001e80| 61 69 6e 20 63 6f 64 65 | 20 62 61 73 65 2e 20 48 |ain code| base. H|
|00001e90| 6f 77 65 76 65 72 2c 20 | 0a 74 68 65 79 20 73 74 |owever, |.they st|
|00001ea0| 69 6c 6c 20 61 6c 6c 6f | 77 20 6f 74 68 65 72 73 |ill allo|w others|
|00001eb0| 20 74 6f 20 70 6f 72 74 | 20 47 4e 55 20 73 74 75 | to port| GNU stu|
|00001ec0| 66 66 20 74 6f 20 74 68 | 65 20 4d 61 63 2c 20 61 |ff to th|e Mac, a|
|00001ed0| 6e 64 20 69 74 20 68 61 | 73 20 0a 62 65 65 6e 20 |nd it ha|s .been |
|00001ee0| 64 6f 6e 65 20 77 69 74 | 68 20 6d 6f 73 74 20 6f |done wit|h most o|
|00001ef0| 66 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |f the ap|plicatio|
|00001f00| 6e 2d 6c 69 6b 65 20 47 | 4e 55 20 70 72 6f 67 72 |n-like G|NU progr|
|00001f10| 61 6d 73 20 28 62 69 73 | 6f 6e 2c 20 0a 66 6c 65 |ams (bis|on, .fle|
|00001f20| 78 2c 20 70 65 72 6c 20 | 28 6e 6f 74 20 72 65 61 |x, perl |(not rea|
|00001f30| 6c 6c 79 20 70 61 72 74 | 20 6f 66 20 47 4e 55 29 |lly part| of GNU)|
|00001f40| 2c 20 2e 2e 2e 29 20 0a | 0a 67 63 63 2d 31 2e 33 |, ...) .|.gcc-1.3|
|00001f50| 37 72 31 34 20 56 31 2e | 31 20 73 74 61 6e 64 61 |7r14 V1.|1 standa|
|00001f60| 6c 6f 6e 65 20 69 73 20 | 61 76 61 69 6c 61 62 6c |lone is |availabl|
|00001f70| 65 20 66 6f 72 20 66 74 | 70 20 61 74 20 74 68 65 |e for ft|p at the|
|00001f80| 20 61 64 64 72 65 73 73 | 20 62 65 6c 6f 77 2e 0a | address| below..|
|00001f90| 0a 28 41 29 20 6e 69 63 | 2e 73 77 69 74 63 68 2e |.(A) nic|.switch.|
|00001fa0| 63 68 3a 73 6f 66 74 77 | 61 72 65 2f 6d 61 63 2f |ch:softw|are/mac/|
|00001fb0| 73 72 63 2f 74 68 69 6e | 6b 5f 63 2f 47 43 43 5f |src/thin|k_c/GCC_|
|00001fc0| 31 2e 33 37 2e 31 72 31 | 34 2e 73 69 74 2e 62 69 |1.37.1r1|4.sit.bi|
|00001fd0| 6e 0a 28 42 29 20 6e 69 | 63 2e 73 77 69 74 63 68 |n.(B) ni|c.switch|
|00001fe0| 2e 63 68 3a 73 6f 66 74 | 77 61 72 65 2f 6d 61 63 |.ch:soft|ware/mac|
|00001ff0| 2f 73 72 63 2f 74 68 69 | 6e 6b 5f 63 2f 47 43 43 |/src/thi|nk_c/GCC|
|00002000| 5f 31 2e 33 37 2e 31 72 | 31 34 5f 73 72 63 2e 73 |_1.37.1r|14_src.s|
|00002010| 69 74 2e 62 69 6e 0a 28 | 43 29 20 6e 69 63 2e 73 |it.bin.(|C) nic.s|
|00002020| 77 69 74 63 68 2e 63 68 | 3a 73 6f 66 74 77 61 72 |witch.ch|:softwar|
|00002030| 65 2f 6d 61 63 2f 73 72 | 63 2f 74 68 69 6e 6b 5f |e/mac/sr|c/think_|
|00002040| 63 2f 47 43 43 5f 31 2e | 33 37 2e 31 72 31 34 5f |c/GCC_1.|37.1r14_|
|00002050| 6c 69 62 73 72 63 2e 73 | 69 74 2e 62 69 6e 0a 28 |libsrc.s|it.bin.(|
|00002060| 44 29 20 6e 69 63 2e 73 | 77 69 74 63 68 2e 63 68 |D) nic.s|witch.ch|
|00002070| 3a 73 6f 66 74 77 61 72 | 65 2f 6d 61 63 2f 73 72 |:softwar|e/mac/sr|
|00002080| 63 2f 74 68 69 6e 6b 5f | 63 2f 47 43 43 5f 31 2e |c/think_|c/GCC_1.|
|00002090| 33 37 2e 31 72 31 34 5f | 69 6e 63 6c 75 64 65 73 |37.1r14_|includes|
|000020a0| 2e 73 69 74 2e 62 69 6e | 0a 0a 45 78 68 69 62 69 |.sit.bin|..Exhibi|
|000020b0| 74 20 28 41 29 20 77 69 | 6c 6c 20 62 65 20 6f 66 |t (A) wi|ll be of|
|000020c0| 20 69 6e 74 65 72 65 73 | 74 20 74 6f 20 75 73 65 | interes|t to use|
|000020d0| 72 73 20 77 68 6f 20 77 | 69 73 68 20 74 6f 20 70 |rs who w|ish to p|
|000020e0| 6c 61 79 20 77 69 74 68 | 20 61 6e 20 61 63 74 75 |lay with| an actu|
|000020f0| 61 6c 0a 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 20 |al.appli|cation. |
|00002100| 54 68 69 73 20 63 61 6e | 20 6e 6f 74 20 62 65 20 |This can| not be |
|00002110| 64 65 73 63 72 69 62 65 | 64 20 61 73 20 66 69 6e |describe|d as fin|
|00002120| 69 73 68 65 64 2c 20 62 | 75 74 20 69 74 20 69 73 |ished, b|ut it is|
|00002130| 20 61 74 20 6c 65 61 73 | 74 0a 66 75 6e 63 74 69 | at leas|t.functi|
|00002140| 6f 6e 61 6c 2e 20 43 6f | 6d 6d 65 6e 74 73 20 61 |onal. Co|mments a|
|00002150| 6e 64 20 66 65 65 64 62 | 61 63 6b 20 62 79 20 65 |nd feedb|ack by e|
|00002160| 2d 6d 61 69 6c 20 74 6f | 20 6a 72 72 6b 40 63 61 |-mail to| jrrk@ca|
|00002170| 6d 63 6f 6e 2e 63 6f 2e | 75 6b 20 61 72 65 0a 69 |mcon.co.|uk are.i|
|00002180| 6e 76 69 74 65 64 2e 20 | 45 78 68 69 62 69 74 20 |nvited. |Exhibit |
|00002190| 28 42 29 20 77 69 6c 6c | 20 62 65 20 6f 66 20 69 |(B) will| be of i|
|000021a0| 6e 74 65 72 65 73 74 20 | 74 6f 20 74 68 6f 73 65 |nterest |to those|
|000021b0| 20 77 68 6f 20 6c 69 6b | 65 20 74 6f 20 74 69 6e | who lik|e to tin|
|000021c0| 6b 65 72 20 77 69 74 68 | 0a 73 6f 75 72 63 65 20 |ker with|.source |
|000021d0| 63 6f 64 65 20 61 6e 64 | 20 63 72 69 62 20 69 64 |code and| crib id|
|000021e0| 65 61 73 20 66 6f 72 20 | 74 68 65 69 72 20 6f 77 |eas for |their ow|
|000021f0| 6e 20 70 72 6f 67 72 61 | 6d 73 2e 0a 45 78 68 69 |n progra|ms..Exhi|
|00002200| 62 69 74 20 28 43 29 20 | 77 69 6c 6c 20 62 65 20 |bit (C) |will be |
|00002210| 75 73 65 66 75 6c 20 74 | 6f 20 74 68 6f 73 65 20 |useful t|o those |
|00002220| 77 68 6f 20 6e 65 65 64 | 20 61 20 6c 69 62 72 61 |who need| a libra|
|00002230| 72 79 20 74 6f 20 73 69 | 6d 70 6c 69 66 79 20 70 |ry to si|mplify p|
|00002240| 6f 72 74 69 6e 67 0a 6f | 66 20 63 6f 64 65 20 66 |orting.o|f code f|
|00002250| 72 6f 6d 20 55 4e 49 58 | 20 6f 72 20 77 68 6f 20 |rom UNIX| or who |
|00002260| 61 72 65 20 6f 74 68 65 | 72 77 69 73 65 20 66 65 |are othe|rwise fe|
|00002270| 64 20 75 70 20 77 69 74 | 68 20 74 68 65 20 69 6e |d up wit|h the in|
|00002280| 63 6f 6d 70 61 74 61 62 | 69 6c 69 74 69 65 73 20 |compatab|ilities |
|00002290| 6f 66 0a 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |of.the s|tandard |
|000022a0| 43 20 6c 69 62 72 61 72 | 79 20 70 72 6f 76 69 64 |C librar|y provid|
|000022b0| 65 64 20 77 69 74 68 20 | 54 48 49 4e 4b 20 43 2e |ed with |THINK C.|
|000022c0| 20 49 74 20 69 73 20 61 | 6c 73 6f 20 6e 65 65 64 | It is a|lso need|
|000022d0| 65 64 20 74 6f 20 62 75 | 69 6c 64 0a 28 42 29 20 |ed to bu|ild.(B) |
|000022e0| 69 6e 74 6f 20 61 20 63 | 6f 6d 70 6c 65 74 65 20 |into a c|omplete |
|000022f0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2c 20 61 6e 64 |applicat|ion, and|
|00002300| 20 61 6c 73 6f 20 70 72 | 6f 76 69 64 65 73 20 74 | also pr|ovides t|
|00002310| 68 65 20 62 61 73 69 73 | 20 6f 66 20 74 68 65 20 |he basis| of the |
|00002320| 6f 62 6a 65 63 74 0a 6c | 69 62 72 61 72 69 65 73 |object.l|ibraries|
|00002330| 20 73 75 70 70 6c 69 65 | 64 20 77 69 74 68 20 28 | supplie|d with (|
|00002340| 41 29 2e 0a 45 78 68 69 | 62 69 74 20 28 44 29 20 |A)..Exhi|bit (D) |
|00002350| 61 72 65 20 74 68 65 20 | 63 6f 6e 76 65 6e 74 69 |are the |conventi|
|00002360| 6f 6e 61 6c 20 28 69 2e | 65 2e 20 6e 6f 6e 20 6d |onal (i.|e. non m|
|00002370| 61 63 20 74 6f 6f 6c 62 | 6f 78 29 20 68 65 61 64 |ac toolb|ox) head|
|00002380| 65 72 73 20 74 68 61 74 | 20 61 72 65 0a 6e 65 65 |ers that| are.nee|
|00002390| 64 65 64 20 74 6f 20 63 | 6f 6d 70 69 6c 65 20 74 |ded to c|ompile t|
|000023a0| 68 65 20 73 6f 75 72 63 | 65 20 63 6f 64 65 20 61 |he sourc|e code a|
|000023b0| 6e 64 20 66 6f 72 20 61 | 6e 79 6f 6e 65 20 77 68 |nd for a|nyone wh|
|000023c0| 6f 20 77 6f 75 6c 64 20 | 6c 69 6b 65 20 74 6f 20 |o would |like to |
|000023d0| 77 72 69 74 65 0a 41 4e | 53 49 2d 43 20 70 72 6f |write.AN|SI-C pro|
|000023e0| 67 72 61 6d 73 2e 20 48 | 6f 77 65 76 65 72 20 74 |grams. H|owever t|
|000023f0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 68 61 63 |he numbe|r of hac|
|00002400| 6b 73 20 6e 65 65 64 65 | 64 20 74 6f 20 67 63 63 |ks neede|d to gcc|
|00002410| 20 74 6f 20 6d 61 6b 65 | 20 69 74 0a 73 75 70 70 | to make| it.supp|
|00002420| 6f 72 74 20 6d 61 63 20 | 6e 61 74 69 76 65 20 74 |ort mac |native t|
|00002430| 6f 6f 6c 62 6f 78 20 61 | 70 70 6c 69 63 61 74 69 |oolbox a|pplicati|
|00002440| 6f 6e 73 20 69 73 20 6c | 69 6b 65 6c 79 20 74 6f |ons is l|ikely to|
|00002450| 20 6d 61 6b 65 20 69 74 | 20 75 6e 72 65 6c 69 61 | make it| unrelia|
|00002460| 62 6c 65 20 61 73 0a 61 | 6e 20 41 4e 53 49 20 63 |ble as.a|n ANSI c|
|00002470| 6f 6d 70 69 6c 65 72 2e | 20 46 6f 72 20 74 68 69 |ompiler.| For thi|
|00002480| 73 20 70 75 72 70 6f 73 | 65 2c 20 49 20 68 61 76 |s purpos|e, I hav|
|00002490| 65 20 66 6f 75 6e 64 20 | 4d 61 63 4d 69 4e 54 20 |e found |MacMiNT |
|000024a0| 74 6f 20 62 65 20 61 20 | 62 65 74 74 65 72 0a 61 |to be a |better.a|
|000024b0| 6c 74 65 72 6e 61 74 69 | 76 65 2e 0a 0a 48 69 67 |lternati|ve...Hig|
|000024c0| 68 6c 79 20 72 65 63 6f | 6d 6d 65 6e 64 65 64 20 |hly reco|mmended |
|000024d0| 69 73 20 74 6f 20 67 65 | 74 20 74 68 65 20 74 6f |is to ge|t the to|
|000024e0| 6f 6c 62 6f 78 20 69 6e | 63 6c 75 64 65 73 20 66 |olbox in|cludes f|
|000024f0| 6f 72 20 4d 50 57 20 33 | 2e 32 20 61 6e 64 20 74 |or MPW 3|.2 and t|
|00002500| 68 65 0a 27 73 70 69 6e | 73 69 64 65 20 6d 61 63 |he.'spin|side mac|
|00002510| 69 6e 74 6f 73 68 27 20 | 68 79 70 65 72 63 61 72 |intosh' |hypercar|
|00002520| 64 20 73 74 61 63 6b 20 | 66 72 6f 6d 20 66 74 70 |d stack |from ftp|
|00002530| 2e 61 70 70 6c 65 2e 63 | 6f 6d 20 54 68 65 73 65 |.apple.c|om These|
|00002540| 20 77 69 6c 6c 20 67 69 | 76 65 0a 75 73 65 72 73 | will gi|ve.users|
|00002550| 20 61 6e 20 69 64 65 61 | 20 6f 66 20 68 6f 77 20 | an idea| of how |
|00002560| 74 6f 20 67 6f 20 61 62 | 6f 75 74 20 70 72 6f 67 |to go ab|out prog|
|00002570| 72 61 6d 6d 69 6e 67 20 | 73 74 61 6e 64 2d 61 6c |ramming |stand-al|
|00002580| 6f 6e 65 20 4d 61 63 20 | 61 70 70 6c 69 63 61 74 |one Mac |applicat|
|00002590| 69 6f 6e 73 2e 0a 0a 30 | 2e 34 29 20 51 3a 20 41 |ions...0|.4) Q: A|
|000025a0| 72 65 20 74 68 65 72 65 | 20 61 6e 79 20 6f 74 68 |re there| any oth|
|000025b0| 65 72 20 66 72 65 65 20 | 4d 61 63 20 64 65 76 65 |er free |Mac deve|
|000025c0| 6c 6f 70 6d 65 6e 74 20 | 70 6c 61 74 66 6f 72 6d |lopment |platform|
|000025d0| 73 3f 20 0a 0a 41 3a 20 | 59 65 72 6b 20 61 6e 64 |s? ..A: |Yerk and|
|000025e0| 20 4d 6f 70 73 2e 20 54 | 68 65 73 65 20 61 72 65 | Mops. T|hese are|
|000025f0| 20 6f 62 6a 65 63 74 20 | 6f 72 69 65 6e 74 65 64 | object |oriented|
|00002600| 20 6c 61 6e 67 75 61 67 | 65 73 20 62 61 73 65 64 | languag|es based|
|00002610| 20 6f 6e 20 0a 74 68 65 | 20 6f 6c 64 20 70 72 6f | on .the| old pro|
|00002620| 64 75 63 74 20 4e 65 6f | 6e 20 77 68 69 63 68 20 |duct Neo|n which |
|00002630| 69 74 73 65 6c 66 20 77 | 61 73 20 62 61 73 65 64 |itself w|as based|
|00002640| 20 6f 6e 20 46 6f 72 74 | 68 2e 20 54 68 65 79 20 | on Fort|h. They |
|00002650| 61 72 65 20 0a 61 76 61 | 69 6c 61 62 6c 65 20 77 |are .ava|ilable w|
|00002660| 69 74 68 20 4d 61 6e 75 | 61 6c 73 20 61 74 20 6f |ith Manu|als at o|
|00002670| 64 64 6a 6f 62 2e 75 63 | 68 69 63 61 67 6f 2e 65 |ddjob.uc|hicago.e|
|00002680| 64 75 20 28 61 6e 6f 6e | 79 6d 6f 75 73 20 46 54 |du (anon|ymous FT|
|00002690| 50 29 2e 20 0a 0a 50 6c | 75 73 2c 20 74 68 65 72 |P). ..Pl|us, ther|
|000026a0| 65 27 73 20 4d 61 63 47 | 61 6d 62 69 74 2c 20 4d |e's MacG|ambit, M|
|000026b0| 61 63 53 63 68 65 6d 65 | 2c 20 78 6c 69 73 70 2c |acScheme|, xlisp,|
|000026c0| 20 61 6e 64 20 4d 61 63 | 4d 45 54 48 20 77 68 69 | and Mac|METH whi|
|000026d0| 63 68 20 69 73 20 0a 74 | 68 65 20 61 63 74 75 61 |ch is .t|he actua|
|000026e0| 6c 20 45 54 48 20 28 72 | 65 61 64 3a 20 4e 69 63 |l ETH (r|ead: Nic|
|000026f0| 6b 20 57 69 72 74 68 27 | 73 20 67 72 6f 75 70 29 |k Wirth'|s group)|
|00002700| 20 4d 6f 64 75 6c 61 20 | 32 2c 20 61 6c 6c 20 66 | Modula |2, all f|
|00002710| 6f 72 20 66 72 65 65 20 | 0a 76 69 61 20 46 54 50 |or free |.via FTP|
|00002720| 2e 0a 0a 41 6e 64 20 4f | 70 65 6e 50 72 6f 6c 6f |...And O|penProlo|
|00002730| 67 2e 20 41 6e 64 20 53 | 49 4f 44 20 28 53 63 68 |g. And S|IOD (Sch|
|00002740| 65 6d 65 20 69 6e 20 4f | 6e 65 20 44 65 66 75 6e |eme in O|ne Defun|
|00002750| 29 20 41 6e 64 20 5b 6d | 61 69 6c 20 69 6e 20 6d |) And [m|ail in m|
|00002760| 6f 72 65 20 0a 69 66 20 | 79 6f 75 20 64 61 72 65 |ore .if |you dare|
|00002770| 5d 0a 0a 30 2e 35 29 20 | 51 3a 20 57 68 61 74 27 |]..0.5) |Q: What'|
|00002780| 73 20 74 68 65 20 64 69 | 66 66 65 72 65 6e 63 65 |s the di|fference|
|00002790| 20 62 65 74 77 65 65 6e | 20 74 68 65 20 4d 50 57 | between| the MPW|
|000027a0| 20 61 6e 64 20 54 68 69 | 6e 6b 20 0a 65 6e 76 69 | and Thi|nk .envi|
|000027b0| 72 6f 6e 6d 65 6e 74 73 | 3f 20 0a 0a 41 3a 20 54 |ronments|? ..A: T|
|000027c0| 68 65 20 6d 61 69 6e 20 | 64 69 66 66 65 72 65 6e |he main |differen|
|000027d0| 63 65 20 69 73 20 74 68 | 61 74 20 54 68 69 6e 6b |ce is th|at Think|
|000027e0| 20 69 73 20 61 6e 20 69 | 6e 74 65 67 72 61 74 65 | is an i|ntegrate|
|000027f0| 64 20 0a 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 2c 20 |d .envir|onment, |
|00002800| 77 68 69 6c 65 20 4d 50 | 57 20 70 72 6f 76 69 64 |while MP|W provid|
|00002810| 65 73 20 79 6f 75 20 77 | 69 74 68 20 61 20 63 6f |es you w|ith a co|
|00002820| 6d 6d 61 6e 64 2d 6c 69 | 6e 65 20 73 68 65 6c 6c |mmand-li|ne shell|
|00002830| 20 0a 66 6f 72 20 79 6f | 75 72 20 4d 61 63 20 61 | .for yo|ur Mac a|
|00002840| 6e 64 20 74 6f 6f 6c 73 | 20 74 6f 20 75 73 65 20 |nd tools| to use |
|00002850| 69 6e 20 69 74 2e 20 4d | 50 57 20 61 6c 73 6f 20 |in it. M|PW also |
|00002860| 68 61 73 20 61 20 73 6c | 69 67 68 74 6c 79 20 0a |has a sl|ightly .|
|00002870| 68 69 67 68 65 72 20 73 | 79 73 74 65 6d 73 20 64 |higher s|ystems d|
|00002880| 65 6d 61 6e 64 20 61 6e | 64 20 61 20 6d 75 63 68 |emand an|d a much|
|00002890| 20 73 6c 6f 77 65 72 20 | 6c 69 6e 6b 65 72 2e 20 | slower |linker. |
|000028a0| 0a 0a 54 68 65 20 67 6f | 6f 64 20 74 68 69 6e 67 |..The go|od thing|
|000028b0| 20 61 62 6f 75 74 20 4d | 50 57 20 69 73 20 74 68 | about M|PW is th|
|000028c0| 61 74 20 79 6f 75 20 63 | 61 6e 20 77 72 69 74 65 |at you c|an write|
|000028d0| 20 73 63 72 69 70 74 73 | 20 61 6e 64 20 6d 61 6b | scripts| and mak|
|000028e0| 65 20 0a 66 69 6c 65 73 | 20 74 6f 20 64 6f 20 61 |e .files| to do a|
|000028f0| 6e 79 74 68 69 6e 67 20 | 79 6f 75 20 77 61 6e 74 |nything |you want|
|00002900| 20 69 6e 20 74 68 65 20 | 77 61 79 20 79 6f 75 20 | in the |way you |
|00002910| 77 61 6e 74 20 69 74 2e | 20 54 68 69 6e 6b 20 0a |want it.| Think .|
|00002920| 73 74 69 6c 6c 20 64 6f | 65 73 6e 27 74 20 68 61 |still do|esn't ha|
|00002930| 76 65 20 61 20 76 69 61 | 62 6c 65 20 73 6f 6c 75 |ve a via|ble solu|
|00002940| 74 69 6f 6e 20 74 6f 20 | 64 6f 20 61 20 62 75 69 |tion to |do a bui|
|00002950| 6c 64 20 74 68 61 74 20 | 72 65 71 75 69 72 65 73 |ld that |requires|
|00002960| 20 0a 6d 6f 72 65 20 74 | 68 61 6e 20 6f 6e 65 20 | .more t|han one |
|00002970| 6c 69 6e 6b 20 6f 70 65 | 72 61 74 69 6f 6e 2c 20 |link ope|ration, |
|00002980| 6f 72 20 68 61 73 20 6d | 6f 72 65 20 74 68 61 6e |or has m|ore than|
|00002990| 20 6f 6e 65 20 64 65 73 | 74 69 6e 61 74 69 6f 6e | one des|tination|
|000029a0| 20 0a 66 69 6c 65 2e 20 | 0a 0a 46 6f 72 20 74 68 | .file. |..For th|
|000029b0| 65 20 4d 50 57 20 65 6e | 76 69 72 6f 6e 6d 65 6e |e MPW en|vironmen|
|000029c0| 74 2c 20 74 68 65 72 65 | 20 61 72 65 20 74 68 72 |t, there| are thr|
|000029d0| 65 65 20 73 6f 75 72 63 | 65 20 6c 65 76 65 6c 20 |ee sourc|e level |
|000029e0| 64 65 62 75 67 67 65 72 | 73 3b 20 0a 53 41 44 45 |debugger|s; .SADE|
|000029f0| 2c 20 53 6f 75 72 63 65 | 42 75 67 20 61 6e 64 20 |, Source|Bug and |
|00002a00| 56 6f 6f 64 6f 6f 20 4d | 6f 6e 6b 65 79 2e 20 54 |Voodoo M|onkey. T|
|00002a10| 68 65 20 6c 61 74 74 65 | 72 20 69 73 20 61 6e 20 |he latte|r is an |
|00002a20| 65 78 70 65 72 69 6d 65 | 6e 74 61 6c 20 0a 64 65 |experime|ntal .de|
|00002a30| 62 75 67 67 65 72 20 77 | 69 74 68 20 73 75 70 70 |bugger w|ith supp|
|00002a40| 6f 72 74 20 66 6f 72 20 | 74 68 72 65 61 64 73 20 |ort for |threads |
|00002a50| 64 65 62 75 67 67 69 6e | 67 3b 20 74 68 65 20 6d |debuggin|g; the m|
|00002a60| 69 64 64 6c 65 20 69 73 | 20 0a 62 75 6e 64 6c 65 |iddle is| .bundle|
|00002a70| 64 20 77 69 74 68 20 4d | 50 57 20 77 68 69 6c 65 |d with M|PW while|
|00002a80| 20 53 41 44 45 20 68 61 | 73 20 74 6f 20 62 65 20 | SADE ha|s to be |
|00002a90| 62 6f 75 67 68 74 20 73 | 65 70 61 72 61 74 65 6c |bought s|eparatel|
|00002aa0| 79 20 28 62 75 74 20 69 | 73 20 0a 66 75 6c 6c 79 |y (but i|s .fully|
|00002ab0| 20 73 63 72 69 70 74 61 | 62 6c 65 20 69 6e 20 69 | scripta|ble in i|
|00002ac0| 74 73 20 6f 77 6e 20 73 | 63 72 69 70 74 69 6e 67 |ts own s|cripting|
|00002ad0| 20 6c 61 6e 67 75 61 67 | 65 29 20 0a 0a 54 68 65 | languag|e) ..The|
|00002ae0| 20 54 68 69 6e 6b 20 65 | 6e 76 69 72 6f 6e 6d 65 | Think e|nvironme|
|00002af0| 6e 74 73 20 68 61 76 65 | 20 74 68 65 69 72 20 6f |nts have| their o|
|00002b00| 77 6e 20 69 6e 74 65 67 | 72 61 74 65 64 20 64 65 |wn integ|rated de|
|00002b10| 62 75 67 67 65 72 73 3b | 20 74 68 65 20 0a 54 68 |buggers;| the .Th|
|00002b20| 69 6e 6b 20 50 61 73 63 | 61 6c 20 6f 6e 65 20 68 |ink Pasc|al one h|
|00002b30| 61 73 20 61 20 6c 6f 74 | 20 6f 66 20 75 73 65 66 |as a lot| of usef|
|00002b40| 75 6c 20 66 65 61 74 75 | 72 65 73 20 77 68 69 6c |ul featu|res whil|
|00002b50| 65 20 74 68 65 20 54 68 | 69 6e 6b 20 0a 43 2f 43 |e the Th|ink .C/C|
|00002b60| 2b 2b 20 6f 6e 65 20 69 | 73 20 61 20 6c 69 74 74 |++ one i|s a litt|
|00002b70| 6c 65 20 6d 6f 72 65 20 | 62 61 73 69 63 20 28 62 |le more |basic (b|
|00002b80| 75 74 20 69 73 20 67 61 | 69 6e 69 6e 67 20 69 6e |ut is ga|ining in|
|00002b90| 20 0a 66 75 6e 63 74 69 | 6f 6e 61 6c 69 74 79 20 | .functi|onality |
|00002ba0| 77 69 74 68 20 65 61 63 | 68 20 72 65 6c 65 61 73 |with eac|h releas|
|00002bb0| 65 29 20 53 74 65 70 70 | 69 6e 67 20 74 68 72 6f |e) Stepp|ing thro|
|00002bc0| 75 67 68 20 73 6f 75 72 | 63 65 20 63 6f 64 65 20 |ugh sour|ce code |
|00002bd0| 0a 61 6e 64 20 6c 6f 6f | 6b 69 6e 67 20 61 74 20 |.and loo|king at |
|00002be0| 76 61 72 69 61 62 6c 65 | 73 20 69 73 20 67 65 6e |variable|s is gen|
|00002bf0| 65 72 61 6c 6c 79 20 66 | 61 73 74 65 72 20 61 6e |erally f|aster an|
|00002c00| 64 20 65 61 73 69 65 72 | 20 69 6e 20 54 68 69 6e |d easier| in Thin|
|00002c10| 6b 20 0a 74 68 61 6e 20 | 74 68 65 20 4d 50 57 20 |k .than |the MPW |
|00002c20| 64 65 62 75 67 67 65 72 | 73 2e 20 0a 0a 41 6e 79 |debugger|s. ..Any|
|00002c30| 20 63 6f 6d 6d 65 72 63 | 69 61 6c 20 4d 61 63 20 | commerc|ial Mac |
|00002c40| 64 65 76 65 6c 6f 70 65 | 72 20 73 68 6f 75 6c 64 |develope|r should|
|00002c50| 20 68 61 76 65 20 62 6f | 74 68 20 54 68 69 6e 6b | have bo|th Think|
|00002c60| 20 61 6e 64 20 4d 50 57 | 20 6f 66 20 0a 77 68 61 | and MPW| of .wha|
|00002c70| 74 65 76 65 72 20 6c 61 | 6e 67 75 61 67 65 20 74 |tever la|nguage t|
|00002c80| 68 65 79 20 70 72 65 66 | 65 72 20 28 50 61 73 63 |hey pref|er (Pasc|
|00002c90| 61 6c 2c 20 43 20 6f 72 | 20 43 2b 2b 29 20 0a 0a |al, C or| C++) ..|
|00002ca0| 30 2e 36 29 20 51 3a 20 | 57 68 61 74 20 69 73 20 |0.6) Q: |What is |
|00002cb0| 61 20 67 6f 6f 64 20 6c | 6f 77 2d 6c 65 76 65 6c |a good l|ow-level|
|00002cc0| 20 64 65 62 75 67 67 65 | 72 20 66 6f 72 20 74 68 | debugge|r for th|
|00002cd0| 65 20 4d 61 63 3f 20 0a | 0a 41 3a 20 4d 61 63 73 |e Mac? .|.A: Macs|
|00002ce0| 42 75 67 20 69 73 20 66 | 72 65 65 6c 79 20 61 76 |Bug is f|reely av|
|00002cf0| 61 69 6c 61 62 6c 65 20 | 66 6f 72 20 66 74 70 20 |ailable |for ftp |
|00002d00| 66 72 6f 6d 20 66 74 70 | 2e 61 70 70 6c 65 2e 63 |from ftp|.apple.c|
|00002d10| 6f 6d 3b 20 6c 6f 67 20 | 0a 69 6e 20 61 73 20 75 |om; log |.in as u|
|00002d20| 73 65 72 20 61 6e 6f 6e | 79 6d 6f 75 73 20 61 6e |ser anon|ymous an|
|00002d30| 64 20 67 69 76 65 20 79 | 6f 75 72 20 46 55 4c 4c |d give y|our FULL|
|00002d40| 20 65 2d 6d 61 69 6c 20 | 61 64 64 72 65 73 73 20 | e-mail |address |
|00002d50| 61 73 20 0a 70 61 73 73 | 77 6f 72 64 2e 20 4d 61 |as .pass|word. Ma|
|00002d60| 63 73 42 75 67 20 69 73 | 20 79 6f 75 72 20 62 61 |csBug is| your ba|
|00002d70| 73 69 63 20 6d 6f 6e 69 | 74 6f 72 2d 74 79 70 65 |sic moni|tor-type|
|00002d80| 20 64 65 62 75 67 67 65 | 72 20 74 68 61 74 20 74 | debugge|r that t|
|00002d90| 61 6b 65 73 20 0a 61 20 | 66 65 77 20 68 75 6e 64 |akes .a |few hund|
|00002da0| 72 65 64 20 4b 73 20 6f | 66 20 6d 65 6d 6f 72 79 |red Ks o|f memory|
|00002db0| 2c 20 61 6e 64 20 6c 65 | 74 73 20 79 6f 75 20 62 |, and le|ts you b|
|00002dc0| 72 65 61 6b 2c 20 73 74 | 65 70 2c 20 0a 64 69 73 |reak, st|ep, .dis|
|00002dd0| 61 73 73 65 6d 62 6c 65 | 2c 20 6c 6f 6f 6b 20 61 |assemble|, look a|
|00002de0| 74 20 74 68 65 20 73 74 | 61 63 6b 20 65 74 63 20 |t the st|ack etc |
|00002df0| 6f 66 20 6d 6f 73 74 20 | 61 6e 79 74 68 69 6e 67 |of most |anything|
|00002e00| 20 72 75 6e 6e 69 6e 67 | 20 6f 6e 20 0a 79 6f 75 | running| on .you|
|00002e10| 72 20 4d 61 63 2e 20 53 | 69 6e 63 65 20 69 74 27 |r Mac. S|ince it'|
|00002e20| 73 20 66 72 65 65 20 28 | 69 74 27 73 20 61 6c 73 |s free (|it's als|
|00002e30| 6f 20 6f 6e 20 74 68 65 | 20 64 65 76 65 6c 6f 70 |o on the| develop|
|00002e40| 65 72 20 43 44 73 29 20 | 61 6e 64 20 0a 70 72 6f |er CDs) |and .pro|
|00002e50| 76 69 64 65 73 20 6d 6f | 73 74 20 6f 66 20 74 68 |vides mo|st of th|
|00002e60| 65 20 66 75 6e 63 74 69 | 6f 6e 61 6c 69 74 79 20 |e functi|onality |
|00002e70| 79 6f 75 20 6e 65 65 64 | 2c 20 74 68 69 73 20 69 |you need|, this i|
|00002e80| 73 20 61 20 70 6f 70 75 | 6c 61 72 20 0a 63 68 6f |s a popu|lar .cho|
|00002e90| 69 63 65 2e 20 0a 0a 54 | 4d 4f 4e 20 69 73 20 61 |ice. ..T|MON is a|
|00002ea0| 6e 6f 74 68 65 72 20 64 | 65 62 75 67 67 65 72 20 |nother d|ebugger |
|00002eb0| 77 68 69 63 68 20 73 70 | 6f 72 74 73 20 61 20 6d |which sp|orts a m|
|00002ec0| 6f 72 65 20 6d 61 63 2d | 6c 69 6b 65 20 69 6e 74 |ore mac-|like int|
|00002ed0| 65 72 66 61 63 65 3b 20 | 0a 69 74 20 70 72 6f 76 |erface; |.it prov|
|00002ee0| 69 64 65 73 20 77 69 6e | 64 6f 77 73 20 61 6e 64 |ides win|dows and|
|00002ef0| 20 75 73 65 73 20 74 68 | 65 20 6d 6f 75 73 65 2e | uses th|e mouse.|
|00002f00| 20 49 74 20 63 61 6e 20 | 74 61 6b 65 20 61 73 20 | It can |take as |
|00002f10| 6c 69 74 74 6c 65 20 6f | 72 20 0a 6d 75 63 68 20 |little o|r .much |
|00002f20| 6d 65 6d 6f 72 79 20 61 | 73 20 79 6f 75 20 77 61 |memory a|s you wa|
|00002f30| 6e 74 20 62 79 20 65 78 | 63 6c 75 64 69 6e 67 20 |nt by ex|cluding |
|00002f40| 6f 72 20 69 6e 63 6c 75 | 64 69 6e 67 20 63 65 72 |or inclu|ding cer|
|00002f50| 74 61 69 6e 20 61 72 65 | 61 73 20 0a 6f 66 20 66 |tain are|as .of f|
|00002f60| 75 6e 63 74 69 6f 6e 61 | 6c 69 74 79 2e 20 41 20 |unctiona|lity. A |
|00002f70| 6e 69 63 65 20 74 6f 75 | 63 68 20 69 73 20 74 68 |nice tou|ch is th|
|00002f80| 65 20 36 35 30 32 20 64 | 69 73 61 73 73 65 6d 62 |e 6502 d|isassemb|
|00002f90| 6c 65 72 20 74 68 61 74 | 20 79 6f 75 20 0a 63 61 |ler that| you .ca|
|00002fa0| 6e 20 75 73 65 20 74 6f | 20 64 65 2d 62 75 67 20 |n use to| de-bug |
|00002fb0| 74 68 65 20 63 6f 64 65 | 20 74 68 65 20 49 4f 50 |the code| the IOP|
|00002fc0| 20 70 72 6f 63 65 73 73 | 6f 72 73 20 72 75 6e 20 | process|ors run |
|00002fd0| 6f 6e 20 74 68 65 20 4d | 61 63 20 0a 49 49 66 78 |on the M|ac .IIfx|
|00002fe0| 20 61 6e 64 20 51 75 61 | 64 72 61 20 39 30 30 2f | and Qua|dra 900/|
|00002ff0| 39 35 30 2e 20 0a 0a 4a | 61 73 69 6b 20 44 65 73 |950. ..J|asik Des|
|00003000| 69 67 6e 73 20 68 61 76 | 65 20 61 20 64 65 62 75 |igns hav|e a debu|
|00003010| 67 67 65 72 20 63 61 6c | 6c 65 64 20 54 68 65 20 |gger cal|led The |
|00003020| 44 65 62 75 67 67 65 72 | 20 77 68 69 63 68 20 63 |Debugger| which c|
|00003030| 61 6e 20 64 6f 20 0a 62 | 6f 74 68 20 6c 6f 77 2d |an do .b|oth low-|
|00003040| 20 61 6e 64 20 68 69 67 | 68 2d 6c 65 76 65 6c 20 | and hig|h-level |
|00003050| 64 65 62 75 67 67 69 6e | 67 2c 20 77 69 74 68 20 |debuggin|g, with |
|00003060| 6f 72 20 77 69 74 68 6f | 75 74 20 73 6f 75 72 63 |or witho|ut sourc|
|00003070| 65 20 61 6e 64 20 0a 66 | 6f 72 20 61 6c 6c 20 74 |e and .f|or all t|
|00003080| 79 70 65 73 20 6f 66 20 | 63 6f 64 65 2c 20 61 70 |ypes of |code, ap|
|00003090| 70 6c 69 63 61 74 69 6f | 6e 2c 20 63 6f 64 65 20 |plicatio|n, code |
|000030a0| 72 65 73 6f 75 72 63 65 | 73 2c 20 65 76 65 72 79 |resource|s, every|
|000030b0| 74 68 69 6e 67 2e 20 0a | 54 68 69 73 20 69 73 20 |thing. .|This is |
|000030c0| 74 68 65 20 64 65 62 75 | 67 67 65 72 20 6f 66 20 |the debu|gger of |
|000030d0| 63 68 6f 69 63 65 20 66 | 6f 72 20 6d 61 6e 79 20 |choice f|or many |
|000030e0| 6c 61 72 67 65 20 64 65 | 76 65 6c 6f 70 65 72 73 |large de|velopers|
|000030f0| 20 62 65 63 61 75 73 65 | 20 0a 6f 66 20 69 74 73 | because| .of its|
|00003100| 20 68 69 67 68 20 70 6f | 77 65 72 20 61 6e 64 20 | high po|wer and |
|00003110| 6d 61 6e 79 20 66 65 61 | 74 75 72 65 73 20 6e 6f |many fea|tures no|
|00003120| 74 20 66 6f 75 6e 64 20 | 61 6e 79 77 68 65 72 65 |t found |anywhere|
|00003130| 20 65 6c 73 65 2e 20 0a | 48 6f 77 65 76 65 72 3b | else. .|However;|
|00003140| 20 6e 65 77 63 6f 6d 65 | 72 73 20 62 65 77 61 72 | newcome|rs bewar|
|00003150| 65 21 20 54 68 69 73 20 | 69 73 20 74 68 65 20 4c |e! This |is the L|
|00003160| 61 6d 62 6f 72 67 68 69 | 6e 69 20 6f 66 20 64 65 |amborghi|ni of de|
|00003170| 62 75 67 67 65 72 73 3b | 20 0a 69 66 20 79 6f 75 |buggers;| .if you|
|00003180| 20 6b 6e 6f 77 20 68 6f | 77 20 74 6f 20 64 72 69 | know ho|w to dri|
|00003190| 76 65 20 69 74 2c 20 69 | 74 20 69 73 20 74 68 65 |ve it, i|t is the|
|000031a0| 20 66 61 73 74 65 73 74 | 20 77 61 79 20 66 72 6f | fastest| way fro|
|000031b0| 6d 20 41 20 74 6f 20 42 | 3b 20 0a 69 66 20 79 6f |m A to B|; .if yo|
|000031c0| 75 20 64 6f 6e 27 74 2c | 20 79 6f 75 27 6c 6c 20 |u don't,| you'll |
|000031d0| 6a 75 73 74 20 65 6e 64 | 20 75 70 20 69 6e 20 74 |just end| up in t|
|000031e0| 68 65 20 64 69 74 63 68 | 2e 20 41 73 20 61 20 6c |he ditch|. As a l|
|000031f0| 61 64 79 20 70 75 74 20 | 69 74 3a 0a 22 54 68 65 |ady put |it:."The|
|00003200| 20 6d 61 6e 20 77 6f 75 | 6c 64 6e 27 74 20 6b 6e | man wou|ldn't kn|
|00003210| 6f 77 20 61 20 75 73 65 | 72 20 69 6e 74 65 72 66 |ow a use|r interf|
|00003220| 61 63 65 20 69 66 20 69 | 74 20 62 69 74 20 68 69 |ace if i|t bit hi|
|00003230| 6d 20 69 6e 20 74 68 65 | 0a 72 65 61 72 2e 22 0a |m in the|.rear.".|
|00003240| 0a 30 2e 37 29 20 51 3a | 20 41 72 65 20 74 68 65 |.0.7) Q:| Are the|
|00003250| 72 65 20 61 6e 79 20 76 | 69 73 75 61 6c 20 64 65 |re any v|isual de|
|00003260| 76 65 6c 6f 70 6d 65 6e | 74 73 20 65 6e 76 69 72 |velopmen|ts envir|
|00003270| 6f 6e 6d 65 6e 74 73 20 | 66 6f 72 20 74 68 65 20 |onments |for the |
|00003280| 0a 4d 61 63 20 28 63 6f | 6d 70 61 72 61 62 6c 65 |.Mac (co|mparable|
|00003290| 20 74 6f 20 56 69 73 75 | 61 6c 20 43 2b 2b 29 3f | to Visu|al C++)?|
|000032a0| 0a 0a 41 3a 20 54 68 65 | 72 65 20 69 73 20 6e 6f |..A: The|re is no|
|000032b0| 20 56 69 73 75 61 6c 20 | 43 2b 2b 20 61 73 20 73 | Visual |C++ as s|
|000032c0| 75 63 68 2e 20 48 6f 77 | 65 76 65 72 2c 20 74 68 |uch. How|ever, th|
|000032d0| 65 72 65 20 69 73 20 61 | 20 43 2b 2b 20 0a 70 61 |ere is a| C++ .pa|
|000032e0| 72 73 65 72 2f 65 64 69 | 74 6f 72 20 63 61 6c 6c |rser/edi|tor call|
|000032f0| 65 64 20 4f 62 6a 65 63 | 74 4d 61 73 74 65 72 20 |ed Objec|tMaster |
|00003300| 77 68 69 63 68 20 70 72 | 6f 76 69 64 65 73 20 67 |which pr|ovides g|
|00003310| 6f 6f 64 20 62 72 6f 77 | 73 69 6e 67 20 0a 61 6e |ood brow|sing .an|
|00003320| 64 20 65 64 69 74 69 6e | 67 20 63 61 70 61 62 69 |d editin|g capabi|
|00003330| 6c 69 74 69 65 73 20 69 | 66 20 79 6f 75 20 61 6c |lities i|f you al|
|00003340| 72 65 61 64 79 20 68 61 | 76 65 20 61 20 43 2b 2b |ready ha|ve a C++|
|00003350| 20 63 6f 6d 70 69 6c 65 | 72 2e 20 0a 54 68 69 6e | compile|r. .Thin|
|00003360| 6b 20 43 2b 2b 20 61 6c | 73 6f 20 63 6f 6d 65 73 |k C++ al|so comes|
|00003370| 20 77 69 74 68 20 61 20 | 62 72 6f 77 73 65 72 20 | with a |browser |
|00003380| 62 75 69 6c 74 2d 69 6e | 2c 20 61 6e 64 20 79 6f |built-in|, and yo|
|00003390| 75 20 63 61 6e 20 64 72 | 61 77 20 0a 64 69 61 6c |u can dr|aw .dial|
|000033a0| 6f 67 73 2f 77 69 6e 64 | 6f 77 73 20 75 73 69 6e |ogs/wind|ows usin|
|000033b0| 67 20 70 6c 61 69 6e 20 | 6f 6c 64 20 52 65 73 45 |g plain |old ResE|
|000033c0| 64 69 74 2c 20 65 76 65 | 6e 20 66 6f 72 20 79 6f |dit, eve|n for yo|
|000033d0| 75 72 20 63 75 73 74 6f | 6d 20 0a 76 69 65 77 20 |ur custo|m .view |
|000033e0| 74 79 70 65 73 2e 20 0a | 0a 41 70 70 4d 61 6b 65 |types. .|.AppMake|
|000033f0| 72 20 69 73 20 61 20 47 | 55 49 20 62 75 69 6c 64 |r is a G|UI build|
|00003400| 65 72 2f 63 6f 64 65 20 | 67 65 6e 65 72 61 74 6f |er/code |generato|
|00003410| 72 2e 20 20 47 72 61 6e | 74 65 64 2c 20 69 74 27 |r. Gran|ted, it'|
|00003420| 73 20 6e 6f 74 20 61 73 | 20 0a 6e 69 63 65 20 61 |s not as| .nice a|
|00003430| 73 20 56 43 2b 2b 2c 20 | 62 75 74 20 69 74 27 73 |s VC++, |but it's|
|00003440| 20 71 75 69 74 65 20 61 | 20 70 72 6f 64 75 63 74 | quite a| product|
|00003450| 20 69 6e 20 61 6e 79 20 | 63 61 73 65 2e 0a 0a 41 | in any |case...A|
|00003460| 6c 73 6f 2c 20 4e 65 75 | 72 6f 6e 20 44 61 74 61 |lso, Neu|ron Data|
|00003470| 20 68 61 73 20 74 68 65 | 69 72 20 55 49 20 74 6f | has the|ir UI to|
|00003480| 6f 6c 20 63 61 6c 6c 65 | 64 20 4f 70 65 6e 20 49 |ol calle|d Open I|
|00003490| 6e 74 65 72 66 61 63 65 | 2c 20 77 68 69 63 68 20 |nterface|, which |
|000034a0| 0a 69 73 20 62 65 74 74 | 65 72 20 74 68 61 6e 20 |.is bett|er than |
|000034b0| 56 43 2b 2b 20 61 6e 64 | 20 63 72 65 61 74 65 73 |VC++ and| creates|
|000034c0| 20 63 6f 64 65 20 70 6f | 72 74 61 62 6c 65 20 61 | code po|rtable a|
|000034d0| 63 72 6f 73 73 20 33 35 | 20 0a 70 6c 61 74 66 6f |cross 35| .platfo|
|000034e0| 72 6d 73 2e 20 55 6e 66 | 6f 72 74 75 6e 61 74 65 |rms. Unf|ortunate|
|000034f0| 6c 79 20 69 74 27 73 20 | 24 32 35 30 30 20 70 65 |ly it's |$2500 pe|
|00003500| 72 20 64 65 76 65 6c 6f | 70 65 72 20 70 65 72 20 |r develo|per per |
|00003510| 70 6c 61 74 66 6f 72 6d | 2e 20 0a 28 54 68 65 72 |platform|. .(Ther|
|00003520| 65 27 73 20 61 6c 73 6f | 20 74 77 6f 20 6f 74 68 |e's also| two oth|
|00003530| 65 72 20 63 72 6f 73 73 | 2d 70 6c 61 74 66 6f 72 |er cross|-platfor|
|00003540| 6d 20 70 72 6f 64 75 63 | 74 73 20 63 61 6c 6c 65 |m produc|ts calle|
|00003550| 64 20 58 56 54 20 61 6e | 64 20 0a 47 61 6c 61 78 |d XVT an|d .Galax|
|00003560| 79 2c 20 74 68 65 20 66 | 6f 72 6d 65 72 20 68 61 |y, the f|ormer ha|
|00003570| 73 20 67 6f 74 74 65 6e | 20 66 6c 61 6b 20 6f 6e |s gotten| flak on|
|00003580| 20 55 73 65 4e 65 74 20 | 77 68 69 6c 65 20 74 68 | UseNet |while th|
|00003590| 65 20 6c 61 74 74 65 72 | 20 0a 72 65 70 6f 72 74 |e latter| .report|
|000035a0| 65 64 6c 79 20 68 61 73 | 20 64 65 63 65 6e 74 20 |edly has| decent |
|000035b0| 6e 65 74 77 6f 72 6b 69 | 6e 67 20 73 75 70 70 6f |networki|ng suppo|
|000035c0| 72 74 29 0a 0a 54 68 65 | 72 65 20 69 73 20 61 20 |rt)..The|re is a |
|000035d0| 66 75 6c 6c 79 20 76 69 | 73 75 61 6c 2c 20 64 79 |fully vi|sual, dy|
|000035e0| 6e 61 6d 69 63 2c 20 6f | 62 6a 65 63 74 20 6f 72 |namic, o|bject or|
|000035f0| 69 65 6e 74 65 64 20 64 | 61 74 61 2d 66 6c 6f 77 |iented d|ata-flow|
|00003600| 2d 64 72 69 76 65 0a 20 | 20 6e 20 70 72 6f 67 72 |-drive. | n progr|
|00003610| 61 6d 6d 69 6e 67 20 6c | 61 6e 67 75 61 67 65 20 |amming l|anguage |
|00003620| 66 6f 72 20 74 68 65 20 | 4d 61 63 20 63 61 6c 6c |for the |Mac call|
|00003630| 65 64 20 50 72 6f 67 72 | 61 70 68 20 43 6f 72 70 |ed Progr|aph Corp|
|00003640| 6f 72 61 74 65 20 0a 50 | 72 6f 67 72 61 6d 6d 69 |orate .P|rogrammi|
|00003650| 6e 67 20 53 6f 6d 65 74 | 68 69 6e 67 2d 6f 72 2d |ng Somet|hing-or-|
|00003660| 6f 74 68 65 72 20 28 43 | 50 58 29 2e 20 49 74 20 |other (C|PX). It |
|00003670| 69 73 20 65 78 70 65 6e | 73 69 76 65 20 28 24 31 |is expen|sive ($1|
|00003680| 35 30 30 29 20 0a 62 75 | 74 20 6f 66 66 65 72 73 |500) .bu|t offers|
|00003690| 20 61 20 62 75 69 6c 74 | 2d 69 6e 20 64 61 74 61 | a built|-in data|
|000036a0| 62 61 73 65 2c 20 65 61 | 73 79 20 69 6e 74 65 72 |base, ea|sy inter|
|000036b0| 66 61 63 65 73 20 74 6f | 20 65 78 69 73 74 69 6e |faces to| existin|
|000036c0| 67 20 64 61 74 61 20 0a | 62 61 73 65 73 2c 20 76 |g data .|bases, v|
|000036d0| 65 72 79 20 68 69 67 68 | 20 70 72 6f 64 75 63 74 |ery high| product|
|000036e0| 69 76 69 74 79 20 69 6e | 20 69 6d 70 6c 65 6d 65 |ivity in| impleme|
|000036f0| 6e 74 2d 74 65 73 74 2d | 64 65 62 75 67 20 63 79 |nt-test-|debug cy|
|00003700| 63 6c 69 6e 67 20 0a 61 | 6e 64 20 61 6c 73 6f 20 |cling .a|nd also |
|00003710| 6f 66 66 65 72 73 20 63 | 72 6f 73 73 2d 70 6c 61 |offers c|ross-pla|
|00003720| 74 66 6f 72 6d 20 63 61 | 70 61 62 69 6c 69 74 69 |tform ca|pabiliti|
|00003730| 65 73 20 28 69 74 20 63 | 6f 6d 65 73 20 77 69 74 |es (it c|omes wit|
|00003740| 68 20 61 20 0a 63 6c 61 | 73 73 20 6c 69 62 72 61 |h a .cla|ss libra|
|00003750| 72 79 20 77 68 69 63 68 | 2c 20 77 68 65 6e 20 79 |ry which|, when y|
|00003760| 6f 75 72 20 63 6f 64 65 | 20 69 73 20 77 72 69 74 |our code| is writ|
|00003770| 74 65 6e 20 75 73 69 6e | 67 20 69 74 2c 20 77 6f |ten usin|g it, wo|
|00003780| 72 6b 73 20 0a 75 6e 64 | 65 72 20 57 69 6e 64 6f |rks .und|er Windo|
|00003790| 77 73 20 61 66 74 65 72 | 20 72 65 2d 63 6f 6d 70 |ws after| re-comp|
|000037a0| 69 6c 61 74 69 6f 6e 29 | 20 0a 0a 54 68 65 72 65 |ilation)| ..There|
|000037b0| 20 69 73 20 61 20 63 72 | 6f 73 73 69 6e 67 20 62 | is a cr|ossing b|
|000037c0| 65 74 77 65 65 6e 20 53 | 6d 61 6c 6c 54 61 6c 6b |etween S|mallTalk|
|000037d0| 20 61 6e 64 20 43 2b 2b | 20 74 68 61 74 20 69 73 | and C++| that is|
|000037e0| 20 63 61 6c 6c 65 64 20 | 0a 43 6f 6d 70 6f 6e 65 | called |.Compone|
|000037f0| 6e 74 20 57 6f 72 6b 73 | 68 6f 70 3b 20 61 6c 74 |nt Works|hop; alt|
|00003800| 68 6f 75 67 68 20 69 74 | 20 73 65 65 6d 73 20 6c |hough it| seems l|
|00003810| 61 72 67 65 20 61 6e 64 | 20 73 6c 6f 77 6c 79 20 |arge and| slowly |
|00003820| 65 76 6f 6c 76 69 6e 67 | 2c 20 0a 69 74 20 64 6f |evolving|, .it do|
|00003830| 65 73 20 6f 66 66 65 72 | 20 73 6f 6d 65 20 70 72 |es offer| some pr|
|00003840| 6f 6d 69 73 69 6e 67 20 | 66 65 61 74 75 72 65 73 |omising |features|
|00003850| 20 6e 6f 74 20 66 6f 75 | 6e 64 20 69 6e 20 43 2b | not fou|nd in C+|
|00003860| 2b 20 69 74 73 65 6c 66 | 2e 20 0a 0a 54 68 65 72 |+ itself|. ..Ther|
|00003870| 65 20 69 73 20 61 6c 73 | 6f 20 73 6f 6d 65 74 68 |e is als|o someth|
|00003880| 69 6e 67 20 63 61 6c 6c | 65 64 20 53 6d 61 6c 6c |ing call|ed Small|
|00003890| 54 61 6c 6b 41 67 65 6e | 74 73 20 74 68 61 74 20 |TalkAgen|ts that |
|000038a0| 6d 61 6b 65 73 20 69 74 | 20 0a 65 61 73 79 20 74 |makes it| .easy t|
|000038b0| 6f 20 63 72 65 61 74 65 | 20 4d 61 63 20 61 70 70 |o create| Mac app|
|000038c0| 6c 69 63 61 74 69 6f 6e | 73 20 75 73 69 6e 67 20 |lication|s using |
|000038d0| 53 6d 61 6c 6c 54 61 6c | 6b 2e 20 49 66 20 79 6f |SmallTal|k. If yo|
|000038e0| 75 27 64 20 72 61 74 68 | 65 72 20 0a 64 6f 20 43 |u'd rath|er .do C|
|000038f0| 6f 6d 6d 6f 6e 20 4c 69 | 73 70 2c 20 4d 61 63 69 |ommon Li|sp, Maci|
|00003900| 6e 74 6f 73 68 20 43 6f | 6d 6d 6f 6e 20 4c 69 73 |ntosh Co|mmon Lis|
|00003910| 70 20 6f 66 66 65 72 73 | 20 61 20 43 6f 6d 6d 6f |p offers| a Commo|
|00003920| 6e 20 4c 69 73 70 20 0a | 4f 62 6a 65 63 74 20 53 |n Lisp .|Object S|
|00003930| 79 73 74 65 6d 20 77 69 | 74 68 20 73 75 70 70 6f |ystem wi|th suppo|
|00003940| 72 74 20 66 6f 72 20 6d | 6f 73 74 20 4d 61 63 20 |rt for m|ost Mac |
|00003950| 69 6e 74 65 72 66 61 63 | 65 20 69 74 65 6d 73 3b |interfac|e items;|
|00003960| 20 79 6f 75 20 63 61 6e | 20 0a 65 64 69 74 20 63 | you can| .edit c|
|00003970| 6f 64 65 20 77 68 69 6c | 65 20 69 74 20 69 73 20 |ode whil|e it is |
|00003980| 72 75 6e 6e 69 6e 67 20 | 61 6e 64 20 62 75 69 6c |running |and buil|
|00003990| 64 20 73 74 61 6e 64 2d | 61 6c 6f 6e 65 20 0a 61 |d stand-|alone .a|
|000039a0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 2e 20 0a 0a 48 |pplicati|ons. ..H|
|000039b0| 6f 77 65 76 65 72 2c 20 | 61 6c 6c 20 6f 66 20 74 |owever, |all of t|
|000039c0| 68 65 73 65 20 74 6f 6f | 6c 73 20 67 65 6e 65 72 |hese too|ls gener|
|000039d0| 61 74 65 20 72 61 74 68 | 65 72 20 6c 61 72 67 65 |ate rath|er large|
|000039e0| 72 20 62 69 6e 61 72 69 | 65 73 20 77 69 74 68 20 |r binari|es with |
|000039f0| 0a 6c 61 72 67 65 72 20 | 73 79 73 74 65 6d 20 64 |.larger |system d|
|00003a00| 65 6d 61 6e 64 73 20 74 | 68 61 6e 20 61 20 70 72 |emands t|han a pr|
|00003a10| 6f 67 72 61 6d 20 77 72 | 69 74 74 65 6e 20 69 6e |ogram wr|itten in|
|00003a20| 20 43 2e 20 4f 6e 20 74 | 68 65 20 6f 74 68 65 72 | C. On t|he other|
|00003a30| 20 0a 68 61 6e 64 3b 20 | 43 2b 2b 20 70 72 6f 67 | .hand; |C++ prog|
|00003a40| 72 61 6d 73 20 72 65 71 | 75 69 72 65 20 6d 6f 72 |rams req|uire mor|
|00003a50| 65 20 6d 65 6d 6f 72 79 | 20 61 6e 64 20 64 69 73 |e memory| and dis|
|00003a60| 6b 20 73 70 61 63 65 20 | 74 68 61 6e 20 0a 70 72 |k space |than .pr|
|00003a70| 6f 67 72 61 6d 73 20 77 | 72 69 74 74 65 6e 20 69 |ograms w|ritten i|
|00003a80| 6e 20 61 73 73 65 6d 62 | 6c 79 2e 20 49 74 27 73 |n assemb|ly. It's|
|00003a90| 20 61 20 74 72 61 64 65 | 2d 6f 66 66 2c 20 61 6e | a trade|-off, an|
|00003aa0| 64 20 49 20 62 65 6c 69 | 65 76 65 20 0a 74 68 69 |d I beli|eve .thi|
|00003ab0| 73 20 74 79 70 65 20 6f | 66 20 74 6f 6f 6c 73 20 |s type o|f tools |
|00003ac0| 69 73 20 74 68 65 20 77 | 61 76 65 20 6f 66 20 74 |is the w|ave of t|
|00003ad0| 68 65 20 6e 65 61 72 20 | 66 75 74 75 72 65 2e 20 |he near |future. |
|00003ae0| 0a 0a 30 2e 38 29 20 51 | 3a 20 57 68 61 74 20 63 |..0.8) Q|: What c|
|00003af0| 6c 61 73 73 20 6c 69 62 | 72 61 72 69 65 73 20 61 |lass lib|raries a|
|00003b00| 72 65 20 74 68 65 72 65 | 20 66 6f 72 20 74 68 65 |re there| for the|
|00003b10| 20 4d 61 63 3f 20 0a 0a | 41 3a 20 41 70 61 72 74 | Mac? ..|A: Apart|
|00003b20| 20 66 72 6f 6d 20 74 68 | 65 20 6c 69 62 72 61 72 | from th|e librar|
|00003b30| 69 65 73 20 6d 65 6e 74 | 69 6f 6e 65 64 20 61 62 |ies ment|ioned ab|
|00003b40| 6f 76 65 2c 20 74 68 65 | 72 65 20 61 72 65 20 74 |ove, the|re are t|
|00003b50| 68 72 65 65 20 0a 63 6f | 6e 74 65 6e 64 65 72 73 |hree .co|ntenders|
|00003b60| 3a 20 4d 61 63 41 70 70 | 2c 20 54 43 4c 2c 20 61 |: MacApp|, TCL, a|
|00003b70| 6e 64 20 4f 4f 50 43 2e | 20 4f 6e 20 74 68 65 20 |nd OOPC.| On the |
|00003b80| 68 6f 72 69 7a 6f 6e 20 | 6d 61 79 20 62 65 20 0a |horizon |may be .|
|00003b90| 42 65 64 72 6f 63 6b 2e | 20 0a 0a 4d 61 63 41 70 |Bedrock.| ..MacAp|
|00003ba0| 70 20 69 73 20 61 20 68 | 65 61 76 79 2d 64 75 74 |p is a h|eavy-dut|
|00003bb0| 79 20 63 6c 61 73 73 20 | 6c 69 62 72 61 72 79 20 |y class |library |
|00003bc0| 74 68 61 74 20 68 61 73 | 20 74 6f 6e 73 20 6f 66 |that has| tons of|
|00003bd0| 20 66 65 61 74 75 72 65 | 73 20 0a 61 6e 64 20 61 | feature|s .and a|
|00003be0| 20 73 74 65 65 70 20 6c | 65 61 72 6e 69 6e 67 20 | steep l|earning |
|00003bf0| 63 75 72 76 65 3b 20 69 | 74 20 72 75 6e 73 20 75 |curve; i|t runs u|
|00003c00| 6e 64 65 72 20 4d 50 57 | 20 77 69 74 68 20 50 61 |nder MPW| with Pa|
|00003c10| 73 63 61 6c 20 6f 72 20 | 0a 43 2b 2b 2c 20 61 6e |scal or |.C++, an|
|00003c20| 64 20 61 6c 73 6f 20 75 | 6e 64 65 72 20 54 68 69 |d also u|nder Thi|
|00003c30| 6e 6b 20 50 61 73 63 61 | 6c 20 34 2e 30 20 41 20 |nk Pasca|l 4.0 A |
|00003c40| 6d 61 6a 6f 72 20 61 70 | 70 6c 69 63 61 74 69 6f |major ap|plicatio|
|00003c50| 6e 20 77 72 69 74 74 65 | 6e 20 0a 69 6e 20 4d 61 |n writte|n .in Ma|
|00003c60| 63 41 70 70 20 69 73 20 | 50 68 6f 74 6f 53 68 6f |cApp is |PhotoSho|
|00003c70| 70 2e 20 0a 0a 54 43 4c | 20 73 74 61 6e 64 73 20 |p. ..TCL| stands |
|00003c80| 66 6f 72 20 54 68 69 6e | 6b 20 43 6c 61 73 73 20 |for Thin|k Class |
|00003c90| 4c 69 62 72 61 72 79 20 | 61 6e 64 20 63 6f 6d 65 |Library |and come|
|00003ca0| 73 20 77 69 74 68 20 54 | 68 69 6e 6b 20 50 61 73 |s with T|hink Pas|
|00003cb0| 63 61 6c 2c 20 0a 43 20 | 6f 72 20 43 2b 2b 2e 20 |cal, .C |or C++. |
|00003cc0| 49 74 20 69 73 20 61 20 | 73 6d 61 6c 6c 65 72 20 |It is a |smaller |
|00003cd0| 6c 69 62 72 61 72 79 20 | 74 68 61 74 20 73 74 69 |library |that sti|
|00003ce0| 6c 6c 20 66 69 6c 6c 73 | 20 6d 6f 73 74 20 70 65 |ll fills| most pe|
|00003cf0| 6f 70 6c 65 73 20 0a 6e | 65 65 64 73 3b 20 73 69 |oples .n|eeds; si|
|00003d00| 6e 63 65 20 54 68 69 6e | 6b 20 43 20 69 6d 70 6c |nce Thin|k C impl|
|00003d10| 65 6d 65 6e 74 73 20 61 | 20 73 75 62 73 65 74 20 |ements a| subset |
|00003d20| 6f 66 20 43 2b 2b 20 28 | 74 68 65 20 6d 6f 73 74 |of C++ (|the most|
|00003d30| 20 0a 69 6d 70 6f 72 74 | 61 6e 74 20 4f 4f 20 63 | .import|ant OO c|
|00003d40| 6f 6e 63 65 70 74 73 20 | 73 75 63 68 20 61 73 20 |oncepts |such as |
|00003d50| 76 69 72 74 75 61 6c 20 | 66 75 6e 63 74 69 6f 6e |virtual |function|
|00003d60| 73 20 61 6e 64 20 69 6e | 68 65 72 69 74 61 6e 63 |s and in|heritanc|
|00003d70| 65 29 20 0a 61 6e 64 20 | 74 68 65 20 54 43 4c 20 |e) .and |the TCL |
|00003d80| 69 73 20 63 61 72 65 66 | 75 6c 6c 79 20 77 72 69 |is caref|ully wri|
|00003d90| 74 74 65 6e 20 6e 6f 74 | 20 74 6f 20 74 61 6b 65 |tten not| to take|
|00003da0| 20 61 64 76 61 6e 74 61 | 67 65 20 6f 66 20 61 6e | advanta|ge of an|
|00003db0| 79 20 0a 43 2b 2b 20 66 | 65 61 74 75 72 65 73 20 |y .C++ f|eatures |
|00003dc0| 6e 6f 74 20 69 6e 20 54 | 68 69 6e 6b 20 43 2c 20 |not in T|hink C, |
|00003dd0| 79 6f 75 20 63 61 6e 20 | 75 73 65 20 69 74 20 77 |you can |use it w|
|00003de0| 69 74 68 20 54 68 69 6e | 6b 20 43 2e 20 41 20 0a |ith Thin|k C. A .|
|00003df0| 6d 61 6a 6f 72 20 61 70 | 70 6c 69 63 61 74 69 6f |major ap|plicatio|
|00003e00| 6e 20 77 72 69 74 74 65 | 6e 20 69 6e 20 54 43 4c |n writte|n in TCL|
|00003e10| 20 69 73 20 4c 6f 74 75 | 73 20 31 2d 32 2d 33 2e | is Lotu|s 1-2-3.|
|00003e20| 20 0a 0a 4f 4f 50 43 20 | 69 73 20 61 20 6e 65 77 | ..OOPC |is a new|
|00003e30| 63 6f 6d 65 72 20 69 6e | 20 74 68 65 20 66 69 65 |comer in| the fie|
|00003e40| 6c 64 2c 20 61 6e 64 20 | 75 73 65 73 20 70 6c 61 |ld, and |uses pla|
|00003e50| 69 6e 20 41 4e 53 49 20 | 43 2e 20 48 6f 77 65 76 |in ANSI |C. Howev|
|00003e60| 65 72 2c 20 0a 69 74 20 | 6d 61 6e 67 6c 65 73 20 |er, .it |mangles |
|00003e70| 74 68 65 20 70 72 65 2d | 70 72 6f 63 65 73 73 6f |the pre-|processo|
|00003e80| 72 20 74 6f 20 70 72 6f | 76 69 64 65 20 79 6f 75 |r to pro|vide you|
|00003e90| 20 77 69 74 68 20 61 20 | 73 79 73 74 65 6d 20 77 | with a |system w|
|00003ea0| 69 74 68 20 0a 66 75 6c | 6c 20 69 6e 68 65 72 69 |ith .ful|l inheri|
|00003eb0| 74 61 6e 63 65 2c 20 76 | 69 72 74 75 61 6c 20 66 |tance, v|irtual f|
|00003ec0| 75 6e 63 74 69 6f 6e 73 | 2c 20 61 6e 64 20 64 79 |unctions|, and dy|
|00003ed0| 6e 61 6d 69 63 20 72 65 | 2d 62 69 6e 64 69 6e 67 |namic re|-binding|
|00003ee0| 20 6f 66 20 0a 66 75 6e | 63 74 69 6f 6e 73 20 66 | of .fun|ctions f|
|00003ef0| 6f 72 20 63 6c 61 73 73 | 65 73 20 6f 72 20 69 6e |or class|es or in|
|00003f00| 64 69 76 69 64 75 61 6c | 20 6f 62 6a 65 63 74 73 |dividual| objects|
|00003f10| 2e 20 53 74 61 72 74 2d | 75 70 20 69 73 20 73 6c |. Start-|up is sl|
|00003f20| 6f 77 2c 20 0a 73 69 6e | 63 65 20 61 6c 6c 20 22 |ow, .sin|ce all "|
|00003f30| 6c 69 6e 6b 69 6e 67 22 | 20 6f 66 20 76 69 72 74 |linking"| of virt|
|00003f40| 75 61 6c 20 66 75 6e 63 | 74 69 6f 6e 73 20 61 6e |ual func|tions an|
|00003f50| 64 20 63 6c 61 73 73 65 | 73 20 69 73 20 6d 61 64 |d classe|s is mad|
|00003f60| 65 20 61 74 20 0a 72 75 | 6e 2d 74 69 6d 65 2c 20 |e at .ru|n-time, |
|00003f70| 62 75 74 20 70 65 72 66 | 6f 72 6d 61 6e 63 65 20 |but perf|ormance |
|00003f80| 6f 74 68 65 72 77 69 73 | 65 20 69 73 20 67 6f 6f |otherwis|e is goo|
|00003f90| 64 2e 20 41 20 57 69 6e | 64 6f 77 73 20 76 65 72 |d. A Win|dows ver|
|00003fa0| 73 69 6f 6e 20 0a 69 73 | 20 70 72 6f 6d 69 73 65 |sion .is| promise|
|00003fb0| 64 20 66 6f 72 20 6c 61 | 74 65 72 20 74 68 69 73 |d for la|ter this|
|00003fc0| 20 79 65 61 72 2e 20 0a | 0a 30 2e 39 29 20 51 3a | year. .|.0.9) Q:|
|00003fd0| 20 48 6f 77 20 73 68 6f | 75 6c 64 20 49 20 64 65 | How sho|uld I de|
|00003fe0| 62 75 67 20 61 6e 64 20 | 74 65 73 74 20 6d 79 20 |bug and |test my |
|00003ff0| 73 6f 66 74 77 61 72 65 | 3f 20 0a 0a 41 3a 20 47 |software|? ..A: G|
|00004000| 65 74 20 61 68 6f 6c 64 | 20 6f 66 2c 20 61 6e 64 |et ahold| of, and|
|00004010| 20 69 6e 73 74 61 6c 6c | 2c 20 74 68 65 20 65 78 | install|, the ex|
|00004020| 74 65 6e 73 69 6f 6e 73 | 20 44 6f 75 62 6c 65 54 |tensions| DoubleT|
|00004030| 72 6f 75 62 6c 65 2c 20 | 0a 44 69 73 70 6f 73 65 |rouble, |.Dispose|
|00004040| 52 65 73 6f 75 72 63 65 | 20 61 6e 64 20 45 76 65 |Resource| and Eve|
|00004050| 6e 42 65 74 74 65 72 42 | 75 73 45 72 72 6f 72 2e |nBetterB|usError.|
|00004060| 20 54 68 65 79 20 77 69 | 6c 6c 20 63 61 74 63 68 | They wi|ll catch|
|00004070| 20 38 30 25 20 6f 66 20 | 0a 61 6e 79 20 6d 65 6d | 80% of |.any mem|
|00004080| 6f 72 79 20 72 65 6c 61 | 74 65 64 20 62 75 67 73 |ory rela|ted bugs|
|00004090| 20 79 6f 75 20 6d 61 79 | 20 68 61 76 65 2c 20 69 | you may| have, i|
|000040a0| 6e 63 6c 75 64 69 6e 67 | 20 6d 61 6e 79 20 62 75 |ncluding| many bu|
|000040b0| 67 73 20 74 68 61 74 20 | 0a 66 6f 6c 6c 6f 77 20 |gs that |.follow |
|000040c0| 4e 55 4c 4c 20 68 61 6e | 64 6c 65 73 20 6f 72 20 |NULL han|dles or |
|000040d0| 70 6f 69 6e 74 65 72 73 | 2e 20 0a 0a 41 20 6c 6f |pointers|. ..A lo|
|000040e0| 77 2d 6c 65 76 65 6c 20 | 64 65 62 75 67 67 65 72 |w-level |debugger|
|000040f0| 20 69 73 20 72 65 71 75 | 69 72 65 64 2c 20 61 6e | is requ|ired, an|
|00004100| 64 20 77 68 69 6c 65 20 | 79 6f 75 20 69 6e 73 74 |d while |you inst|
|00004110| 61 6c 6c 20 69 74 2c 20 | 0a 69 6e 73 74 61 6c 6c |all it, |.install|
|00004120| 20 74 68 65 20 22 6c 65 | 61 6b 73 22 20 64 63 6d | the "le|aks" dcm|
|00004130| 64 20 77 68 69 63 68 20 | 77 69 6c 6c 20 68 65 6c |d which |will hel|
|00004140| 70 20 79 6f 75 20 63 61 | 74 63 68 20 6d 65 6d 6f |p you ca|tch memo|
|00004150| 72 79 20 6c 65 61 6b 73 | 20 0a 69 6e 20 79 6f 75 |ry leaks| .in you|
|00004160| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2e 20 41 |r applic|ation. A|
|00004170| 6c 6c 20 6f 66 20 74 68 | 65 73 65 20 74 6f 6f 6c |ll of th|ese tool|
|00004180| 73 20 61 72 65 20 61 76 | 61 69 6c 61 62 6c 65 20 |s are av|ailable |
|00004190| 66 72 6f 6d 20 0a 66 74 | 70 2e 61 70 70 6c 65 2e |from .ft|p.apple.|
|000041a0| 63 6f 6d 2e 20 0a 0a 2a | 31 2a 20 46 69 6c 65 73 |com. ..*|1* Files|
|000041b0| 20 61 6e 64 20 74 68 65 | 20 46 69 6c 65 20 4d 61 | and the| File Ma|
|000041c0| 6e 61 67 65 72 20 0a 0a | 31 2e 31 29 20 51 3a 20 |nager ..|1.1) Q: |
|000041d0| 48 6f 77 20 64 6f 20 49 | 20 74 65 6c 6c 20 66 6f |How do I| tell fo|
|000041e0| 70 65 6e 28 29 20 74 6f | 20 6f 70 65 6e 20 61 20 |pen() to| open a |
|000041f0| 66 69 6c 65 20 74 68 65 | 20 75 73 65 72 20 68 61 |file the| user ha|
|00004200| 73 20 0a 73 65 6c 65 63 | 74 65 64 20 75 73 69 6e |s .selec|ted usin|
|00004210| 67 20 53 74 61 6e 64 61 | 72 64 47 65 74 46 69 6c |g Standa|rdGetFil|
|00004220| 65 3f 20 0a 0a 41 3a 20 | 54 68 65 20 22 73 74 61 |e? ..A: |The "sta|
|00004230| 6e 64 61 72 64 22 20 41 | 4e 53 49 20 43 20 66 69 |ndard" A|NSI C fi|
|00004240| 6c 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 61 72 65 |le funct|ions are|
|00004250| 20 6c 65 73 73 20 74 68 | 61 6e 20 77 65 6c 6c 20 | less th|an well |
|00004260| 0a 73 75 69 74 65 64 20 | 66 6f 72 20 74 68 65 20 |.suited |for the |
|00004270| 4d 61 63 69 6e 74 6f 73 | 68 20 77 61 79 20 6f 66 |Macintos|h way of|
|00004280| 20 64 6f 69 6e 67 20 74 | 68 69 6e 67 73 2e 20 48 | doing t|hings. H|
|00004290| 6f 77 65 76 65 72 2c 20 | 69 66 20 79 6f 75 20 0a |owever, |if you .|
|000042a0| 61 72 65 20 64 6f 69 6e | 67 20 61 20 70 6f 72 74 |are doin|g a port|
|000042b0| 20 66 6f 72 20 79 6f 75 | 72 20 6f 77 6e 20 65 6e | for you|r own en|
|000042c0| 6a 6f 79 6d 65 6e 74 20 | 61 6e 64 20 62 65 6e 65 |joyment |and bene|
|000042d0| 66 69 74 20 28 6f 72 20 | 6d 61 79 62 65 20 0a 66 |fit (or |maybe .f|
|000042e0| 6f 72 20 69 6e 2d 68 6f | 75 73 65 20 77 6f 72 6b |or in-ho|use work|
|000042f0| 29 20 79 6f 75 20 63 61 | 6e 20 75 73 65 20 74 68 |) you ca|n use th|
|00004300| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 66 75 6e 63 |e follow|ing func|
|00004310| 74 69 6f 6e 3a 20 28 73 | 65 65 20 0a 62 65 6c 6f |tion: (s|ee .belo|
|00004320| 77 20 61 62 6f 75 74 20 | 63 6f 6e 76 65 72 74 69 |w about |converti|
|00004330| 6e 67 20 61 20 77 64 52 | 65 66 4e 75 6d 20 69 6e |ng a wdR|efNum in|
|00004340| 74 6f 20 61 20 76 52 65 | 66 4e 75 6d 2f 70 61 72 |to a vRe|fNum/par|
|00004350| 49 44 20 70 61 69 72 29 | 20 0a 0a 2a 63 6f 64 65 |ID pair)| ..*code|
|00004360| 2a 0a 46 49 4c 45 20 2a | 0a 66 6f 70 65 6e 5f 6d |*.FILE *|.fopen_m|
|00004370| 61 63 20 28 20 73 68 6f | 72 74 20 76 52 65 66 4e |ac ( sho|rt vRefN|
|00004380| 75 6d 20 2c 20 6c 6f 6e | 67 20 70 61 72 49 44 20 |um , lon|g parID |
|00004390| 2c 20 63 68 61 72 20 2a | 20 66 69 6c 65 4e 61 6d |, char *| fileNam|
|000043a0| 65 20 2c 20 63 68 61 72 | 20 2a 20 6d 6f 64 65 20 |e , char| * mode |
|000043b0| 29 20 7b 0a 0a 73 68 6f | 72 74 20 6f 6c 64 56 6f |) {..sho|rt oldVo|
|000043c0| 6c 20 3b 0a 73 68 6f 72 | 74 20 61 56 6f 6c 20 3b |l ;.shor|t aVol ;|
|000043d0| 0a 6c 6f 6e 67 20 61 44 | 69 72 20 2c 20 61 50 72 |.long aD|ir , aPr|
|000043e0| 6f 63 20 3b 0a 46 49 4c | 45 20 2a 20 72 65 74 20 |oc ;.FIL|E * ret |
|000043f0| 3d 20 4e 55 4c 4c 20 3b | 0a 0a 09 69 66 20 28 20 |= NULL ;|...if ( |
|00004400| 47 65 74 56 6f 6c 20 28 | 20 4e 55 4c 4c 20 2c 20 |GetVol (| NULL , |
|00004410| 26 20 6f 6c 64 56 6f 6c | 20 29 20 29 20 7b 0a 09 |& oldVol| ) ) {..|
|00004420| 09 72 65 74 75 72 6e 20 | 4e 55 4c 4c 20 3b 0a 09 |.return |NULL ;..|
|00004430| 7d 0a 09 69 66 20 28 20 | 47 65 74 57 44 49 6e 66 |}..if ( |GetWDInf|
|00004440| 6f 20 28 20 6f 6c 64 56 | 6f 6c 20 2c 20 26 20 61 |o ( oldV|ol , & a|
|00004450| 56 6f 6c 20 2c 20 26 20 | 61 44 69 72 20 2c 20 26 |Vol , & |aDir , &|
|00004460| 20 61 50 72 6f 63 20 29 | 20 29 20 7b 0a 09 09 72 | aProc )| ) {...r|
|00004470| 65 74 75 72 6e 20 4e 55 | 4c 4c 20 20 3b 0a 09 7d |eturn NU|LL ;..}|
|00004480| 0a 09 69 66 20 28 20 48 | 53 65 74 56 6f 6c 20 28 |..if ( H|SetVol (|
|00004490| 20 4e 55 4c 4c 20 2c 20 | 76 52 65 66 4e 75 6d 20 | NULL , |vRefNum |
|000044a0| 2c 20 70 61 72 49 44 20 | 29 20 29 20 7b 0a 09 09 |, parID |) ) {...|
|000044b0| 72 65 74 75 72 6e 20 4e | 55 4c 4c 20 3b 0a 09 7d |return N|ULL ;..}|
|000044c0| 0a 09 72 65 74 20 3d 20 | 66 6f 70 65 6e 20 28 20 |..ret = |fopen ( |
|000044d0| 66 69 6c 65 4e 61 6d 65 | 20 2c 20 6d 6f 64 65 20 |fileName| , mode |
|000044e0| 29 20 3b 0a 09 69 66 20 | 28 20 48 53 65 74 56 6f |) ;..if |( HSetVo|
|000044f0| 6c 20 28 20 61 56 6f 6c | 20 2c 20 61 44 69 72 20 |l ( aVol| , aDir |
|00004500| 29 20 29 20 7b 0a 09 09 | 2f 2a 20 61 6e 20 65 72 |) ) {...|/* an er|
|00004510| 72 6f 72 20 77 65 20 63 | 61 6e 27 74 20 63 75 72 |ror we c|an't cur|
|00004520| 72 65 6e 74 6c 79 20 68 | 61 6e 64 6c 65 20 2a 2f |rently h|andle */|
|00004530| 0a 09 7d 0a 09 69 66 20 | 28 20 53 65 74 56 6f 6c |..}..if |( SetVol|
|00004540| 20 28 20 6f 6c 64 56 6f | 6c 20 29 20 29 20 7b 0a | ( oldVo|l ) ) {.|
|00004550| 09 09 2f 2a 20 61 6e 20 | 65 72 72 6f 72 20 77 65 |../* an |error we|
|00004560| 20 63 61 6e 27 74 20 63 | 75 72 72 65 6e 74 6c 79 | can't c|urrently|
|00004570| 20 68 61 6e 64 6c 65 20 | 2a 2f 0a 09 7d 0a 09 72 | handle |*/..}..r|
|00004580| 65 74 75 72 6e 20 72 65 | 74 20 3b 0a 7d 0a 2a 65 |eturn re|t ;.}.*e|
|00004590| 6e 64 2a 0a 0a 41 6c 6c | 20 6f 66 20 74 68 65 20 |nd*..All| of the |
|000045a0| 61 62 6f 76 65 20 69 73 | 20 6e 65 63 65 73 73 61 |above is| necessa|
|000045b0| 72 79 20 66 6f 72 20 6f | 6e 65 20 72 65 61 73 6f |ry for o|ne reaso|
|000045c0| 6e 20 6f 72 20 61 6e 6f | 74 68 65 72 20 2d 20 69 |n or ano|ther - i|
|000045d0| 66 20 79 6f 75 20 0a 61 | 72 65 20 69 6e 74 65 72 |f you .a|re inter|
|000045e0| 65 73 74 65 64 2c 20 62 | 79 20 61 6c 6c 20 6d 65 |ested, b|y all me|
|000045f0| 61 6e 73 20 6c 6f 6f 6b | 20 48 53 65 74 56 6f 6c |ans look| HSetVol|
|00004600| 20 75 70 20 69 6e 20 54 | 68 69 6e 6b 20 52 65 66 | up in T|hink Ref|
|00004610| 65 72 65 6e 63 65 20 0a | 32 2e 30 20 6f 72 20 4e |erence .|2.0 or N|
|00004620| 65 77 20 49 6e 73 69 64 | 65 20 4d 61 63 3a 20 46 |ew Insid|e Mac: F|
|00004630| 69 6c 65 73 2e 20 0a 0a | 49 6e 20 6f 6c 64 65 72 |iles. ..|In older|
|00004640| 20 76 65 72 73 69 6f 6e | 73 20 6f 66 20 4d 50 57 | version|s of MPW|
|00004650| 3b 20 74 68 69 73 20 77 | 6f 75 6c 64 6e 27 74 20 |; this w|ouldn't |
|00004660| 77 6f 72 6b 20 73 69 6e | 63 65 20 74 68 65 20 4d |work sin|ce the M|
|00004670| 50 57 20 0a 6c 69 62 72 | 61 72 69 65 73 20 75 73 |PW .libr|aries us|
|00004680| 65 64 20 74 6f 20 64 6f | 20 61 20 47 65 74 56 6f |ed to do| a GetVo|
|00004690| 6c 20 61 6e 64 20 65 78 | 70 6c 69 63 69 74 6c 79 |l and ex|plicitly|
|000046a0| 20 75 73 65 20 74 68 61 | 74 20 76 61 6c 75 65 20 | use tha|t value |
|000046b0| 62 79 20 0a 69 74 73 65 | 6c 66 2e 20 0a 0a 31 2e |by .itse|lf. ..1.|
|000046c0| 32 29 20 51 3a 20 57 68 | 65 6e 20 63 61 6e 20 49 |2) Q: Wh|en can I|
|000046d0| 20 75 73 65 20 74 68 65 | 20 48 4f 70 65 6e 2c 20 | use the| HOpen, |
|000046e0| 48 43 72 65 61 74 65 20 | 65 74 63 20 66 69 6c 65 |HCreate |etc file|
|000046f0| 20 63 61 6c 6c 73 3f 20 | 41 72 65 20 0a 74 68 65 | calls? |Are .the|
|00004700| 79 20 6f 6e 6c 79 20 53 | 79 73 74 65 6d 20 37 20 |y only S|ystem 7 |
|00004710| 63 61 6c 6c 73 3f 20 0a | 0a 41 3a 20 41 6c 6c 20 |calls? .|.A: All |
|00004720| 74 68 65 20 48 58 78 78 | 20 63 61 6c 6c 73 20 74 |the HXxx| calls t|
|00004730| 68 61 74 20 74 61 6b 65 | 20 61 20 76 52 65 66 4e |hat take| a vRefN|
|00004740| 75 6d 20 61 6e 64 20 70 | 61 72 49 44 20 61 73 20 |um and p|arID as |
|00004750| 77 65 6c 6c 20 61 73 20 | 0a 74 68 65 20 66 69 6c |well as |.the fil|
|00004760| 65 20 6e 61 6d 65 20 61 | 72 65 20 69 6d 70 6c 65 |e name a|re imple|
|00004770| 6d 65 6e 74 65 64 20 69 | 6e 20 67 6c 75 65 20 74 |mented i|n glue t|
|00004780| 68 61 74 20 77 6f 72 6b | 73 20 6f 6e 20 61 6e 79 |hat work|s on any|
|00004790| 20 73 79 73 74 65 6d 20 | 0a 74 68 61 74 20 68 61 | system |.that ha|
|000047a0| 73 20 48 46 53 20 28 6d | 65 61 6e 69 6e 67 20 33 |s HFS (m|eaning 3|
|000047b0| 2e 32 20 61 6e 64 20 75 | 70 20 77 69 74 68 20 74 |.2 and u|p with t|
|000047c0| 68 65 20 48 44 32 30 20 | 49 4e 49 54 2c 20 61 6e |he HD20 |INIT, an|
|000047d0| 64 20 61 6c 6c 20 0a 73 | 79 73 74 65 6d 73 20 66 |d all .s|ystems f|
|000047e0| 72 6f 6d 20 53 79 73 74 | 65 6d 20 36 20 61 6e 64 |rom Syst|em 6 and|
|000047f0| 20 75 70 29 20 0a 0a 54 | 68 65 20 67 6c 75 65 20 | up) ..T|he glue |
|00004800| 69 73 20 61 76 61 69 6c | 61 62 6c 65 20 69 6e 20 |is avail|able in |
|00004810| 4d 50 57 20 33 2e 32 20 | 61 6e 64 20 75 70 2c 20 |MPW 3.2 |and up, |
|00004820| 61 6e 64 20 54 68 69 6e | 6b 20 43 20 35 2e 30 20 |and Thin|k C 5.0 |
|00004830| 61 6e 64 20 75 70 2e 20 | 0a 54 68 69 73 20 67 6f |and up. |.This go|
|00004840| 65 73 20 66 6f 72 20 61 | 6c 6c 20 48 58 78 78 20 |es for a|ll HXxx |
|00004850| 63 61 6c 6c 73 20 65 78 | 63 65 70 74 20 48 4f 70 |calls ex|cept HOp|
|00004860| 65 6e 44 46 3b 20 74 68 | 65 72 65 66 6f 72 65 2c |enDF; th|erefore,|
|00004870| 20 69 66 20 79 6f 75 20 | 0a 61 72 65 20 69 6e 74 | if you |.are int|
|00004880| 65 72 65 73 74 65 64 20 | 69 6e 20 53 79 73 74 65 |erested |in Syste|
|00004890| 6d 20 36 20 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 |m 6 comp|atibilit|
|000048a0| 79 2c 20 75 73 65 20 48 | 4f 70 65 6e 20 69 6e 73 |y, use H|Open ins|
|000048b0| 74 65 61 64 20 61 6e 64 | 20 0a 6d 61 6b 65 20 73 |tead and| .make s|
|000048c0| 75 72 65 20 79 6f 75 20 | 64 6f 6e 27 74 20 61 6c |ure you |don't al|
|000048d0| 6c 6f 77 20 66 69 6c 65 | 20 6e 61 6d 65 73 20 62 |low file| names b|
|000048e0| 65 67 69 6e 6e 69 6e 67 | 20 77 69 74 68 20 61 20 |eginning| with a |
|000048f0| 70 65 72 69 6f 64 2e 20 | 0a 0a 31 2e 33 29 20 51 |period. |..1.3) Q|
|00004900| 3a 20 57 68 79 20 64 6f | 20 79 6f 75 20 73 61 79 |: Why do| you say|
|00004910| 20 77 64 52 65 66 4e 75 | 6d 20 73 6f 6d 65 74 69 | wdRefNu|m someti|
|00004920| 6d 65 73 20 61 6e 64 20 | 76 52 65 66 4e 75 6d 20 |mes and |vRefNum |
|00004930| 73 6f 6d 65 74 69 6d 65 | 73 3f 20 0a 57 68 79 20 |sometime|s? .Why |
|00004940| 64 6f 20 79 6f 75 20 73 | 61 79 20 70 61 72 49 44 |do you s|ay parID|
|00004950| 20 73 6f 6d 65 74 69 6d | 65 73 20 61 6e 64 20 64 | sometim|es and d|
|00004960| 69 72 49 44 20 73 6f 6d | 65 74 69 6d 65 73 3f 20 |irID som|etimes? |
|00004970| 0a 0a 41 3a 20 57 68 65 | 6e 20 74 68 65 20 4d 61 |..A: Whe|n the Ma|
|00004980| 63 20 66 69 72 73 74 20 | 6d 61 64 65 20 61 6e 20 |c first |made an |
|00004990| 61 70 70 65 61 72 61 6e | 63 65 20 69 6e 20 31 39 |appearan|ce in 19|
|000049a0| 38 34 2c 20 69 74 20 69 | 64 65 6e 74 69 66 69 65 |84, it i|dentifie|
|000049b0| 64 20 0a 66 69 6c 65 73 | 20 62 79 20 75 73 69 6e |d .files| by usin|
|000049c0| 67 20 61 20 76 52 65 66 | 4e 75 6d 20 28 76 6f 6c |g a vRef|Num (vol|
|000049d0| 75 6d 65 20 72 65 66 65 | 72 65 6e 63 65 20 6e 75 |ume refe|rence nu|
|000049e0| 6d 62 65 72 20 6d 65 61 | 6e 69 6e 67 20 61 20 0a |mber mea|ning a .|
|000049f0| 66 6c 6f 70 70 79 20 64 | 69 73 6b 20 6f 72 20 6c |floppy d|isk or l|
|00004a00| 61 74 65 72 20 68 61 72 | 64 20 64 69 73 6b 29 20 |ater har|d disk) |
|00004a10| 61 6e 64 20 61 20 6e 61 | 6d 65 2e 20 4f 6e 63 65 |and a na|me. Once|
|00004a20| 20 48 46 53 20 73 61 77 | 20 74 68 65 20 0a 6c 69 | HFS saw| the .li|
|00004a30| 67 68 74 20 6f 66 20 64 | 61 79 2c 20 66 6f 6c 64 |ght of d|ay, fold|
|00004a40| 65 72 73 20 77 69 74 68 | 69 6e 20 66 6f 6c 64 65 |ers with|in folde|
|00004a50| 72 73 20 62 65 63 61 6d | 65 20 61 20 72 65 61 6c |rs becam|e a real|
|00004a60| 69 74 79 2c 20 61 6e 64 | 20 79 6f 75 20 0a 6e 65 |ity, and| you .ne|
|00004a70| 65 64 65 64 20 61 20 64 | 69 72 49 44 20 61 73 20 |eded a d|irID as |
|00004a80| 77 65 6c 6c 20 74 6f 20 | 70 6f 69 6e 74 20 6f 75 |well to |point ou|
|00004a90| 74 20 77 68 61 74 20 66 | 6f 6c 64 65 72 20 79 6f |t what f|older yo|
|00004aa0| 75 20 72 65 61 6c 6c 79 | 20 6d 65 61 6e 74 20 0a |u really| meant .|
|00004ab0| 6f 6e 20 74 68 65 20 76 | 6f 6c 75 6d 65 2e 20 48 |on the v|olume. H|
|00004ac0| 6f 77 65 76 65 72 2c 20 | 6f 6c 64 65 72 20 70 72 |owever, |older pr|
|00004ad0| 6f 67 72 61 6d 73 20 74 | 68 61 74 20 77 61 73 6e |ograms t|hat wasn|
|00004ae0| 27 74 20 62 65 69 6e 67 | 20 0a 72 65 77 72 69 74 |'t being| .rewrit|
|00004af0| 74 65 6e 20 73 74 69 6c | 6c 20 6b 6e 65 77 20 6e |ten stil|l knew n|
|00004b00| 6f 74 68 69 6e 67 20 61 | 62 6f 75 74 20 64 69 72 |othing a|bout dir|
|00004b10| 65 63 74 6f 72 79 20 49 | 44 73 2c 20 73 6f 20 41 |ectory I|Ds, so A|
|00004b20| 70 70 6c 65 20 68 61 64 | 20 0a 53 46 47 65 74 46 |pple had| .SFGetF|
|00004b30| 69 6c 65 20 6d 61 6b 65 | 20 75 70 20 22 66 61 6b |ile make| up "fak|
|00004b40| 65 22 20 76 52 65 66 4e | 75 6d 73 20 74 68 61 74 |e" vRefN|ums that|
|00004b50| 20 64 69 64 6e 27 74 20 | 6a 75 73 74 20 73 70 65 | didn't |just spe|
|00004b60| 63 69 66 79 20 61 20 0a | 0a 76 6f 6c 75 6d 65 2c |cify a .|.volume,|
|00004b70| 20 62 75 74 20 61 6c 73 | 6f 20 61 20 70 61 72 65 | but als|o a pare|
|00004b80| 6e 74 20 66 6f 6c 64 65 | 72 2e 20 54 68 65 73 65 |nt folde|r. These|
|00004b90| 20 61 72 65 20 63 61 6c | 6c 65 64 20 77 64 52 65 | are cal|led wdRe|
|00004ba0| 66 4e 75 6d 73 20 0a 28 | 66 6f 72 20 77 6f 72 6b |fNums .(|for work|
|00004bb0| 69 6e 67 20 64 69 72 65 | 63 74 6f 72 79 29 20 61 |ing dire|ctory) a|
|00004bc0| 6e 64 20 77 65 72 65 20 | 61 20 6e 65 63 65 73 73 |nd were |a necess|
|00004bd0| 61 72 79 20 65 76 69 6c | 20 69 6e 76 65 6e 74 65 |ary evil| invente|
|00004be0| 64 20 69 6e 20 0a 31 39 | 38 35 2e 20 59 6f 75 20 |d in .19|85. You |
|00004bf0| 73 68 6f 75 6c 64 20 6e | 6f 74 20 63 72 65 61 74 |should n|ot creat|
|00004c00| 65 20 28 6f 72 2c 20 69 | 6e 64 65 65 64 2c 20 75 |e (or, i|ndeed, u|
|00004c10| 73 65 29 20 77 64 52 65 | 66 4e 75 6d 73 20 0a 79 |se) wdRe|fNums .y|
|00004c20| 6f 75 72 73 65 6c 66 2e | 20 0a 0a 54 68 65 72 65 |ourself.| ..There|
|00004c30| 20 69 73 20 61 20 73 79 | 73 74 65 6d 2d 77 69 64 | is a sy|stem-wid|
|00004c40| 65 20 74 61 62 6c 65 20 | 74 68 61 74 20 6d 61 70 |e table |that map|
|00004c50| 73 20 77 64 52 65 66 4e | 75 6d 73 20 6f 6e 74 6f |s wdRefN|ums onto|
|00004c60| 20 0a 76 52 65 66 4e 75 | 6d 2f 70 61 72 49 44 20 | .vRefNu|m/parID |
|00004c70| 70 61 69 72 73 2e 20 54 | 68 65 72 65 20 69 73 20 |pairs. T|here is |
|00004c80| 61 20 6c 69 6d 69 74 20 | 74 6f 20 74 68 65 20 73 |a limit |to the s|
|00004c90| 69 7a 65 20 6f 66 20 74 | 68 69 73 20 74 61 62 6c |ize of t|his tabl|
|00004ca0| 65 2e 20 0a 41 20 64 69 | 72 49 44 20 61 6e 64 20 |e. .A di|rID and |
|00004cb0| 61 20 70 61 72 49 44 20 | 69 73 20 61 6c 6d 6f 73 |a parID |is almos|
|00004cc0| 74 20 74 68 65 20 73 61 | 6d 65 20 74 68 69 6e 67 |t the sa|me thing|
|00004cd0| 3b 20 79 6f 75 20 73 61 | 79 20 22 70 61 72 49 44 |; you sa|y "parID|
|00004ce0| 22 20 0a 77 68 65 6e 20 | 79 6f 75 20 6d 65 61 6e |" .when |you mean|
|00004cf0| 20 74 68 65 20 66 6f 6c | 64 65 72 20 73 6f 6d 65 | the fol|der some|
|00004d00| 74 68 69 6e 67 20 69 73 | 20 69 6e 2c 20 77 68 69 |thing is| in, whi|
|00004d10| 6c 65 20 79 6f 75 20 73 | 61 79 20 61 20 0a 22 64 |le you s|ay a ."d|
|00004d20| 69 72 49 44 22 20 77 68 | 65 6e 20 79 6f 75 20 6d |irID" wh|en you m|
|00004d30| 65 61 6e 20 74 68 65 20 | 66 6f 6c 64 65 72 20 69 |ean the |folder i|
|00004d40| 74 73 65 6c 66 2e 20 49 | 66 20 79 6f 75 20 66 6f |tself. I|f you fo|
|00004d50| 72 20 69 6e 73 74 61 6e | 63 65 20 0a 68 61 76 65 |r instan|ce .have|
|00004d60| 20 61 20 66 6f 6c 64 65 | 72 20 63 61 6c 6c 65 64 | a folde|r called|
|00004d70| 20 22 46 6f 6f 22 20 77 | 69 74 68 20 61 20 66 6f | "Foo" w|ith a fo|
|00004d80| 6c 64 65 72 20 63 61 6c | 6c 65 64 20 22 42 61 72 |lder cal|led "Bar|
|00004d90| 22 20 69 6e 20 69 74 2c | 20 74 68 65 20 0a 70 61 |" in it,| the .pa|
|00004da0| 72 49 44 20 66 6f 72 20 | 22 42 61 72 22 20 77 6f |rID for |"Bar" wo|
|00004db0| 75 6c 64 20 62 65 20 74 | 68 65 20 64 69 72 49 44 |uld be t|he dirID|
|00004dc0| 20 66 6f 72 20 22 46 6f | 6f 2e 22 20 0a 0a 31 2e | for "Fo|o." ..1.|
|00004dd0| 34 29 20 51 3a 20 48 6f | 77 20 64 6f 20 49 20 63 |4) Q: Ho|w do I c|
|00004de0| 6f 6e 76 65 72 74 20 61 | 20 77 64 52 65 66 4e 75 |onvert a| wdRefNu|
|00004df0| 6d 20 61 73 20 72 65 74 | 75 72 6e 65 64 20 62 79 |m as ret|urned by|
|00004e00| 20 53 46 47 65 74 46 69 | 6c 65 20 0a 69 6e 74 6f | SFGetFi|le .into|
|00004e10| 20 61 20 76 52 65 66 4e | 75 6d 2f 70 61 72 49 44 | a vRefN|um/parID|
|00004e20| 20 70 61 69 72 20 74 6f | 20 75 73 65 20 77 69 74 | pair to| use wit|
|00004e30| 68 20 74 68 65 20 48 58 | 78 78 20 63 61 6c 6c 73 |h the HX|xx calls|
|00004e40| 2e 20 0a 0a 41 3a 20 55 | 73 65 20 47 65 74 57 44 |. ..A: U|se GetWD|
|00004e50| 49 6e 66 6f 2c 20 77 68 | 69 63 68 20 69 73 20 64 |Info, wh|ich is d|
|00004e60| 65 63 6c 61 72 65 64 20 | 61 73 3a 20 0a 0a 50 61 |eclared |as: ..Pa|
|00004e70| 73 63 61 6c 20 4f 53 45 | 72 72 20 47 65 74 57 44 |scal OSE|rr GetWD|
|00004e80| 49 6e 66 6f 20 28 20 73 | 68 6f 72 74 20 77 64 52 |Info ( s|hort wdR|
|00004e90| 65 66 4e 75 6d 20 2c 20 | 73 68 6f 72 74 20 2a 20 |efNum , |short * |
|00004ea0| 76 52 65 66 4e 75 6d 20 | 2c 20 6c 6f 6e 67 20 0a |vRefNum |, long .|
|00004eb0| 2a 20 70 61 72 49 44 20 | 2c 20 4f 53 54 79 70 65 |* parID |, OSType|
|00004ec0| 20 2a 20 70 72 6f 63 49 | 44 20 29 20 3b 20 0a 0a | * procI|D ) ; ..|
|00004ed0| 54 68 65 20 70 72 6f 63 | 49 44 20 70 61 72 61 6d |The proc|ID param|
|00004ee0| 65 74 65 72 20 6d 75 73 | 74 20 62 65 20 6e 6f 6e |eter mus|t be non|
|00004ef0| 2d 4e 55 4c 4c 20 61 6e | 64 20 70 6f 69 6e 74 20 |-NULL an|d point |
|00004f00| 74 6f 20 61 6e 20 4f 53 | 54 79 70 65 20 0a 76 61 |to an OS|Type .va|
|00004f10| 72 69 61 62 6c 65 2c 20 | 62 75 74 20 74 68 65 20 |riable, |but the |
|00004f20| 76 61 6c 75 65 20 6f 66 | 20 74 68 61 74 20 76 61 |value of| that va|
|00004f30| 72 69 61 62 6c 65 20 63 | 61 6e 20 61 6e 64 20 73 |riable c|an and s|
|00004f40| 68 6f 75 6c 64 20 62 65 | 20 0a 69 67 6e 6f 72 65 |hould be| .ignore|
|00004f50| 64 2e 20 0a 0a 49 74 20 | 69 73 20 72 65 63 6f 6d |d. ..It |is recom|
|00004f60| 6d 65 6e 64 65 64 20 74 | 68 61 74 2c 20 61 73 20 |mended t|hat, as |
|00004f70| 73 6f 6f 6e 20 61 73 20 | 79 6f 75 20 67 65 74 20 |soon as |you get |
|00004f80| 79 6f 75 72 20 68 61 6e | 64 73 20 6f 6e 20 61 20 |your han|ds on a |
|00004f90| 0a 77 64 52 65 66 4e 75 | 6d 2c 20 66 6f 72 20 69 |.wdRefNu|m, for i|
|00004fa0| 6e 73 74 61 6e 63 65 20 | 66 72 6f 6d 20 53 46 47 |nstance |from SFG|
|00004fb0| 65 74 46 69 6c 65 2c 20 | 79 6f 75 20 64 69 72 65 |etFile, |you dire|
|00004fc0| 63 74 6c 79 20 63 6f 6e | 76 65 72 74 20 69 74 20 |ctly con|vert it |
|00004fd0| 0a 69 6e 74 6f 20 61 20 | 76 52 65 66 4e 75 6d 2f |.into a |vRefNum/|
|00004fe0| 70 61 72 49 44 20 70 61 | 69 72 20 61 6e 64 20 61 |parID pa|ir and a|
|00004ff0| 6c 77 61 79 73 20 75 73 | 65 20 74 68 65 20 6c 61 |lways us|e the la|
|00005000| 74 74 65 72 20 74 6f 20 | 72 65 66 65 72 65 6e 63 |tter to |referenc|
|00005010| 65 20 0a 74 68 65 20 66 | 6f 6c 64 65 72 2e 20 0a |e .the f|older. .|
|00005020| 0a 31 2e 35 29 20 51 3a | 20 48 6f 77 20 64 6f 20 |.1.5) Q:| How do |
|00005030| 49 20 73 65 6c 65 63 74 | 20 61 20 66 6f 6c 64 65 |I select| a folde|
|00005040| 72 20 75 73 69 6e 67 20 | 53 46 47 65 74 46 69 6c |r using |SFGetFil|
|00005050| 65 3f 20 0a 0a 41 3a 20 | 54 68 69 73 20 72 65 71 |e? ..A: |This req|
|00005060| 75 69 72 65 73 20 61 20 | 63 75 73 74 6f 6d 20 64 |uires a |custom d|
|00005070| 69 61 6c 6f 67 20 77 69 | 74 68 20 61 20 66 69 6c |ialog wi|th a fil|
|00005080| 74 65 72 20 70 72 6f 63 | 2e 20 49 74 20 69 73 20 |ter proc|. It is |
|00005090| 74 6f 6f 20 0a 63 6f 6d | 70 6c 69 63 61 74 65 64 |too .com|plicated|
|000050a0| 20 74 6f 20 73 68 6f 77 | 20 68 65 72 65 2c 20 62 | to show| here, b|
|000050b0| 75 74 20 6e 6f 74 20 74 | 6f 74 61 6c 6c 79 20 69 |ut not t|otally i|
|000050c0| 6d 70 6f 73 73 69 62 6c | 65 20 74 6f 20 0a 63 6f |mpossibl|e to .co|
|000050d0| 6d 70 72 65 68 65 6e 64 | 2e 20 54 68 65 72 65 20 |mprehend|. There |
|000050e0| 69 73 20 73 61 6d 70 6c | 65 20 63 6f 64 65 20 6f |is sampl|e code o|
|000050f0| 6e 20 66 74 70 2e 61 70 | 70 6c 65 2e 63 6f 6d 2c |n ftp.ap|ple.com,|
|00005100| 20 69 6e 20 74 68 65 20 | 0a 64 69 72 65 63 74 6f | in the |.directo|
|00005110| 72 79 20 64 74 73 2f 73 | 6e 69 70 70 65 74 73 2c |ry dts/s|nippets,|
|00005120| 20 6f 6e 20 68 6f 77 20 | 74 6f 20 64 6f 20 74 68 | on how |to do th|
|00005130| 69 73 2e 20 0a 0a 31 2e | 36 29 20 51 3a 20 48 6f |is. ..1.|6) Q: Ho|
|00005140| 77 20 64 6f 20 49 20 67 | 65 74 20 74 68 65 20 66 |w do I g|et the f|
|00005150| 75 6c 6c 20 70 61 74 68 | 20 6f 66 20 61 20 66 69 |ull path| of a fi|
|00005160| 6c 65 20 72 65 66 65 72 | 65 6e 63 65 64 20 62 79 |le refer|enced by|
|00005170| 20 61 20 0a 76 52 65 66 | 4e 75 6d 2c 20 70 61 72 | a .vRef|Num, par|
|00005180| 49 44 20 61 6e 64 20 6e | 61 6d 65 3f 20 0a 0a 41 |ID and n|ame? ..A|
|00005190| 3a 20 59 6f 75 20 64 6f | 6e 27 74 2e 20 0a 0a 4f |: You do|n't. ..O|
|000051a0| 4b 2c 20 49 20 63 68 65 | 61 74 65 64 20 79 6f 75 |K, I che|ated you|
|000051b0| 2e 20 54 68 65 72 65 20 | 69 73 20 65 78 61 63 74 |. There |is exact|
|000051c0| 6c 79 20 4f 4e 45 20 76 | 61 6c 69 64 20 72 65 61 |ly ONE v|alid rea|
|000051d0| 73 6f 6e 20 74 6f 20 67 | 65 74 20 74 68 65 20 0a |son to g|et the .|
|000051e0| 66 75 6c 6c 20 70 61 74 | 68 20 6f 66 20 61 20 66 |full pat|h of a f|
|000051f0| 69 6c 65 20 28 6f 72 20 | 66 6f 6c 64 65 72 2c 20 |ile (or |folder, |
|00005200| 66 6f 72 20 74 68 61 74 | 20 6d 61 74 74 65 72 29 |for that| matter)|
|00005210| 20 61 6e 64 20 74 68 61 | 74 20 69 73 20 74 6f 20 | and tha|t is to |
|00005220| 0a 64 69 73 70 6c 61 79 | 20 69 74 73 20 6c 6f 63 |.display| its loc|
|00005230| 61 74 69 6f 6e 20 74 6f | 20 74 68 65 20 75 73 65 |ation to| the use|
|00005240| 72 20 69 6e 2c 20 73 61 | 79 2c 20 61 20 73 65 74 |r in, sa|y, a set|
|00005250| 74 69 6e 67 73 20 64 69 | 61 6c 6f 67 2e 20 54 6f |tings di|alog. To|
|00005260| 20 0a 61 63 74 75 61 6c | 6c 79 20 73 61 76 65 20 | .actual|ly save |
|00005270| 74 68 65 20 6c 6f 63 61 | 74 69 6f 6e 20 6f 66 20 |the loca|tion of |
|00005280| 74 68 65 20 66 69 6c 65 | 20 79 6f 75 20 73 68 6f |the file| you sho|
|00005290| 75 6c 64 20 64 6f 20 74 | 68 69 73 3a 20 0a 28 61 |uld do t|his: .(a|
|000052a0| 73 73 75 6d 69 6e 67 20 | 74 68 65 20 66 69 6c 65 |ssuming |the file|
|000052b0| 20 69 73 20 69 6e 20 61 | 6e 20 46 53 53 70 65 63 | is in a|n FSSpec|
|000052c0| 20 63 61 6c 6c 65 64 20 | 74 68 65 46 69 6c 65 20 | called |theFile |
|000052d0| 2d 20 79 6f 75 20 63 61 | 6e 20 75 73 65 20 0a 46 |- you ca|n use .F|
|000052e0| 53 53 70 65 63 73 20 69 | 6e 20 79 6f 75 72 20 70 |SSpecs i|n your p|
|000052f0| 72 6f 67 72 61 6d 20 65 | 76 65 6e 20 69 66 20 79 |rogram e|ven if y|
|00005300| 6f 75 20 64 6f 6e 27 74 | 20 72 75 6e 20 75 6e 64 |ou don't| run und|
|00005310| 65 72 20 53 79 73 74 65 | 6d 20 37 3b 20 0a 6a 75 |er Syste|m 7; .ju|
|00005320| 73 74 20 6d 61 6b 65 20 | 79 6f 75 72 20 6f 77 6e |st make |your own|
|00005330| 20 4d 79 46 53 4d 61 6b | 65 46 53 53 70 65 63 20 | MyFSMak|eFSSpec |
|00005340| 74 68 61 74 20 66 69 6c | 6c 73 20 69 6e 20 74 68 |that fil|ls in th|
|00005350| 65 20 46 53 53 70 65 63 | 20 0a 6d 61 6e 75 61 6c |e FSSpec| .manual|
|00005360| 6c 79 20 69 66 20 69 74 | 27 73 20 6e 6f 74 20 69 |ly if it|'s not i|
|00005370| 6d 70 6c 65 6d 65 6e 74 | 65 64 29 20 0a 0a 2a 63 |mplement|ed) ..*c|
|00005380| 6f 64 65 2a 0a 69 66 20 | 28 20 21 20 61 6c 69 61 |ode*.if |( ! alia|
|00005390| 73 4d 61 6e 61 67 65 72 | 41 76 61 69 6c 61 62 6c |sManager|Availabl|
|000053a0| 65 20 29 20 7b 20 2f 2a | 20 53 79 73 74 65 6d 20 |e ) { /*| System |
|000053b0| 36 20 3f 20 2a 2f 0a 09 | 47 65 74 56 6f 6c 75 6d |6 ? */..|GetVolum|
|000053c0| 65 4e 61 6d 65 20 28 20 | 74 68 65 46 69 6c 65 20 |eName ( |theFile |
|000053d0| 2d 3e 20 76 52 65 66 4e | 75 6d 20 2c 20 76 4e 61 |-> vRefN|um , vNa|
|000053e0| 6d 65 20 29 20 3b 0a 09 | 47 65 74 56 6f 6c 75 6d |me ) ;..|GetVolum|
|000053f0| 65 4d 6f 64 44 61 74 65 | 20 28 20 76 52 65 66 4e |eModDate| ( vRefN|
|00005400| 75 6d 20 2c 20 26 20 64 | 61 74 65 20 29 20 3b 0a |um , & d|ate ) ;.|
|00005410| 09 53 61 76 65 20 28 20 | 76 4e 61 6d 65 20 2c 20 |.Save ( |vName , |
|00005420| 64 61 74 65 20 2c 20 70 | 61 72 49 44 20 2c 20 66 |date , p|arID , f|
|00005430| 69 6c 65 4e 61 6d 65 20 | 29 20 3b 0a 7d 20 65 6c |ileName |) ;.} el|
|00005440| 73 65 20 7b 0a 09 4e 65 | 77 41 6c 69 61 73 20 28 |se {..Ne|wAlias (|
|00005450| 20 4e 55 4c 4c 20 2c 20 | 74 68 65 46 69 6c 65 20 | NULL , |theFile |
|00005460| 2c 20 26 20 74 68 65 41 | 6c 69 61 73 20 29 20 3b |, & theA|lias ) ;|
|00005470| 0a 09 53 61 76 65 20 28 | 20 74 68 65 41 6c 69 61 |..Save (| theAlia|
|00005480| 73 20 29 20 3b 0a 09 44 | 69 73 70 6f 73 65 48 61 |s ) ;..D|isposeHa|
|00005490| 6e 64 6c 65 20 28 20 28 | 20 48 61 6e 64 6c 65 20 |ndle ( (| Handle |
|000054a0| 29 20 74 68 65 41 6c 69 | 61 73 20 29 20 3b 0a 7d |) theAli|as ) ;.}|
|000054b0| 0a 2a 65 6e 64 2a 0a 0a | 49 66 20 79 6f 75 20 61 |.*end*..|If you a|
|000054c0| 72 65 20 72 65 61 6c 6c | 79 20 63 6f 6e 63 65 72 |re reall|y concer|
|000054d0| 6e 65 64 20 61 62 6f 75 | 74 20 74 68 65 73 65 20 |ned abou|t these |
|000054e0| 69 73 73 75 65 73 20 28 | 6f 66 20 63 6f 75 72 73 |issues (|of cours|
|000054f0| 65 20 79 6f 75 20 0a 61 | 72 65 21 29 20 79 6f 75 |e you .a|re!) you|
|00005500| 20 73 68 6f 75 6c 64 20 | 73 61 76 65 20 42 4f 54 | should |save BOT|
|00005510| 48 20 6f 66 20 74 68 65 | 73 65 20 6d 65 74 68 6f |H of the|se metho|
|00005520| 64 73 20 77 68 65 6e 20 | 61 76 61 69 6c 61 62 6c |ds when |availabl|
|00005530| 65 2c 20 61 6e 64 20 0a | 6c 6f 61 64 20 62 61 63 |e, and .|load bac|
|00005540| 6b 20 77 68 61 74 65 76 | 65 72 20 69 73 20 74 68 |k whatev|er is th|
|00005550| 65 72 65 20 74 68 61 74 | 20 79 6f 75 20 63 61 6e |ere that| you can|
|00005560| 20 68 61 6e 64 6c 65 3b | 20 73 69 6e 63 65 20 75 | handle;| since u|
|00005570| 73 65 72 73 20 6d 61 79 | 20 0a 62 65 20 75 73 69 |sers may| .be usi|
|00005580| 6e 67 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |ng your |applicat|
|00005590| 69 6f 6e 20 69 6e 20 61 | 20 6d 69 78 65 64 20 53 |ion in a| mixed S|
|000055a0| 79 73 74 65 6d 20 36 2f | 53 79 73 74 65 6d 20 37 |ystem 6/|System 7|
|000055b0| 20 0a 65 6e 76 69 72 6f | 6e 6d 65 6e 74 2e 20 0a | .enviro|nment. .|
|000055c0| 0a 54 6f 20 67 65 74 20 | 62 61 63 6b 20 74 6f 20 |.To get |back to |
|000055d0| 74 68 65 20 66 69 6c 65 | 20 69 73 20 6c 65 66 74 |the file| is left|
|000055e0| 20 61 73 20 61 6e 20 65 | 78 65 72 63 69 73 65 20 | as an e|xercise |
|000055f0| 66 6f 72 20 74 68 65 20 | 72 65 61 64 65 72 2e 20 |for the |reader. |
|00005600| 0a 0a 54 6f 20 6f 70 65 | 6e 20 61 20 66 69 6c 65 |..To ope|n a file|
|00005610| 20 75 73 69 6e 67 20 66 | 6f 70 65 6e 28 29 20 6f | using f|open() o|
|00005620| 72 20 74 68 65 20 50 61 | 73 63 61 6c 20 65 71 75 |r the Pa|scal equ|
|00005630| 69 76 61 6c 65 6e 74 2c | 20 73 65 65 20 61 62 6f |ivalent,| see abo|
|00005640| 76 65 20 0a 61 62 6f 75 | 74 20 75 73 69 6e 67 20 |ve .abou|t using |
|00005650| 61 6e 64 20 6e 6f 74 20 | 75 73 69 6e 67 20 48 53 |and not |using HS|
|00005660| 65 74 56 6f 6c 2e 20 0a | 0a 31 2e 37 29 20 51 3a |etVol. .|.1.7) Q:|
|00005670| 20 57 68 61 74 20 61 62 | 6f 75 74 20 61 63 74 75 | What ab|out actu|
|00005680| 61 6c 6c 79 20 67 65 74 | 74 69 6e 67 20 74 68 65 |ally get|ting the|
|00005690| 20 66 75 6c 6c 20 70 61 | 74 68 20 66 6f 72 20 61 | full pa|th for a|
|000056a0| 20 66 69 6c 65 3f 20 49 | 20 0a 70 72 6f 6d 69 73 | file? I| .promis|
|000056b0| 65 20 49 20 77 69 6c 6c | 20 6f 6e 6c 79 20 75 73 |e I will| only us|
|000056c0| 65 20 69 74 20 74 6f 20 | 73 68 6f 77 20 74 68 65 |e it to |show the|
|000056d0| 20 6c 6f 63 61 74 69 6f | 6e 20 6f 66 20 61 20 66 | locatio|n of a f|
|000056e0| 69 6c 65 20 74 6f 20 74 | 68 65 20 0a 75 73 65 72 |ile to t|he .user|
|000056f0| 21 20 0a 0a 41 3a 20 45 | 6e 74 65 72 20 50 42 47 |! ..A: E|nter PBG|
|00005700| 65 74 43 61 74 49 6e 66 | 6f 2c 20 74 68 65 20 56 |etCatInf|o, the V|
|00005710| 65 67 69 6d 61 74 69 63 | 20 6f 66 20 74 68 65 20 |egimatic| of the |
|00005720| 4d 61 63 20 66 69 6c 65 | 20 73 79 73 74 65 6d 2e |Mac file| system.|
|00005730| 20 41 6e 79 20 0a 4d 61 | 63 20 68 61 63 6b 65 72 | Any .Ma|c hacker|
|00005740| 20 6f 66 20 6b 6e 6f 77 | 6c 65 64 67 65 20 68 61 | of know|ledge ha|
|00005750| 73 20 74 61 6b 65 6e 20 | 74 68 69 73 20 73 79 73 |s taken |this sys|
|00005760| 74 65 6d 20 63 61 6c 6c | 20 74 6f 20 68 69 73 20 |tem call| to his |
|00005770| 68 65 61 72 74 2e 20 0a | 57 68 61 74 20 79 6f 75 |heart. .|What you|
|00005780| 20 64 6f 20 69 73 20 74 | 68 69 73 3a 20 0a 0a 2a | do is t|his: ..*|
|00005790| 63 6f 64 65 2a 0a 4f 53 | 45 72 72 0a 47 65 74 46 |code*.OS|Err.GetF|
|000057a0| 6f 6c 64 65 72 50 61 72 | 65 6e 74 20 28 20 46 53 |olderPar|ent ( FS|
|000057b0| 53 70 65 63 20 2a 20 66 | 73 73 20 2c 20 46 53 53 |Spec * f|ss , FSS|
|000057c0| 70 65 63 20 2a 20 70 61 | 72 65 6e 74 20 29 20 7b |pec * pa|rent ) {|
|000057d0| 0a 0a 43 49 6e 66 6f 50 | 42 52 65 63 20 72 65 63 |..CInfoP|BRec rec|
|000057e0| 20 3b 0a 73 68 6f 72 74 | 20 65 72 72 20 3b 0a 0a | ;.short| err ;..|
|000057f0| 09 2a 20 70 61 72 65 6e | 74 20 3d 20 2a 20 66 73 |.* paren|t = * fs|
|00005800| 73 20 3b 0a 09 72 65 63 | 20 2e 20 68 46 69 6c 65 |s ;..rec| . hFile|
|00005810| 49 6e 66 6f 09 2e 20 69 | 6f 4e 61 6d 65 50 74 72 |Info.. i|oNamePtr|
|00005820| 20 3d 20 70 61 72 65 6e | 74 20 2d 3e 20 6e 61 6d | = paren|t -> nam|
|00005830| 65 20 3b 0a 09 72 65 63 | 20 2e 20 68 46 69 6c 65 |e ;..rec| . hFile|
|00005840| 49 6e 66 6f 09 2e 20 69 | 6f 56 52 65 66 4e 75 6d |Info.. i|oVRefNum|
|00005850| 20 3d 20 70 61 72 65 6e | 74 20 2d 3e 20 76 52 65 | = paren|t -> vRe|
|00005860| 66 4e 75 6d 20 3b 0a 09 | 72 65 63 20 2e 20 68 46 |fNum ;..|rec . hF|
|00005870| 69 6c 65 49 6e 66 6f 09 | 2e 20 69 6f 44 69 72 49 |ileInfo.|. ioDirI|
|00005880| 44 20 3d 20 70 61 72 65 | 6e 74 20 2d 3e 20 70 61 |D = pare|nt -> pa|
|00005890| 72 49 44 20 3b 0a 09 69 | 66 20 28 20 70 61 72 65 |rID ;..i|f ( pare|
|000058a0| 6e 74 20 2d 3e 20 6e 61 | 6d 65 20 5b 20 30 20 5d |nt -> na|me [ 0 ]|
|000058b0| 20 29 20 7b 0a 09 09 72 | 65 63 20 2e 20 68 46 69 | ) {...r|ec . hFi|
|000058c0| 6c 65 49 6e 66 6f 20 2e | 20 69 6f 46 44 69 72 49 |leInfo .| ioFDirI|
|000058d0| 6e 64 65 78 20 3d 20 30 | 20 3b 0a 09 7d 20 65 6c |ndex = 0| ;..} el|
|000058e0| 73 65 20 7b 0a 09 09 72 | 65 63 20 2e 20 68 46 69 |se {...r|ec . hFi|
|000058f0| 6c 65 49 6e 66 6f 20 2e | 20 69 6f 46 44 69 72 49 |leInfo .| ioFDirI|
|00005900| 6e 64 65 78 20 3d 20 2d | 31 20 3b 0a 09 7d 0a 09 |ndex = -|1 ;..}..|
|00005910| 72 65 63 20 2e 20 68 46 | 69 6c 65 49 6e 66 6f 09 |rec . hF|ileInfo.|
|00005920| 2e 20 69 6f 46 56 65 72 | 73 4e 75 6d 20 3d 20 30 |. ioFVer|sNum = 0|
|00005930| 20 3b 0a 09 65 72 72 20 | 3d 20 50 42 47 65 74 43 | ;..err |= PBGetC|
|00005940| 61 74 49 6e 66 6f 53 79 | 6e 63 20 28 20 26 20 72 |atInfoSy|nc ( & r|
|00005950| 65 63 20 29 20 3b 0a 09 | 69 66 20 28 20 21 20 28 |ec ) ;..|if ( ! (|
|00005960| 20 72 65 63 20 2e 20 68 | 46 69 6c 65 49 6e 66 6f | rec . h|FileInfo|
|00005970| 20 2e 20 69 6f 46 6c 41 | 74 74 72 69 62 20 26 20 | . ioFlA|ttrib & |
|00005980| 30 78 31 30 20 29 20 29 | 20 7b 20 2f 2a 20 4e 6f |0x10 ) )| { /* No|
|00005990| 74 20 61 20 66 6f 6c 64 | 65 72 20 2a 2f 0a 09 09 |t a fold|er */...|
|000059a0| 69 66 20 28 20 21 20 65 | 72 72 20 29 20 7b 0a 09 |if ( ! e|rr ) {..|
|000059b0| 09 09 65 72 72 20 3d 20 | 64 69 72 4e 46 45 72 72 |..err = |dirNFErr|
|000059c0| 20 3b 0a 09 09 7d 0a 09 | 7d 20 65 6c 73 65 20 7b | ;...}..|} else {|
|000059d0| 0a 09 09 70 61 72 65 6e | 74 20 2d 3e 20 70 61 72 |...paren|t -> par|
|000059e0| 49 44 20 3d 20 72 65 63 | 20 2e 20 64 69 72 49 6e |ID = rec| . dirIn|
|000059f0| 66 6f 20 2e 20 69 6f 44 | 72 50 61 72 49 44 20 3b |fo . ioD|rParID ;|
|00005a00| 0a 09 09 70 61 72 65 6e | 74 20 2d 3e 20 6e 61 6d |...paren|t -> nam|
|00005a10| 65 20 5b 20 30 20 5d 20 | 3d 20 30 20 3b 0a 09 7d |e [ 0 ] |= 0 ;..}|
|00005a20| 0a 09 72 65 74 75 72 6e | 20 65 72 72 20 3b 0a 7d |..return| err ;.}|
|00005a30| 0a 0a 0a 4f 53 45 72 72 | 0a 47 65 74 46 75 6c 6c |...OSErr|.GetFull|
|00005a40| 50 61 74 68 48 61 6e 64 | 6c 65 20 28 20 46 53 53 |PathHand|le ( FSS|
|00005a50| 70 65 63 20 2a 20 66 73 | 73 20 2c 20 48 61 6e 64 |pec * fs|s , Hand|
|00005a60| 6c 65 20 2a 20 68 20 29 | 20 7b 0a 0a 48 61 6e 64 |le * h )| {..Hand|
|00005a70| 6c 65 20 20 74 65 6d 70 | 48 20 3d 20 4e 55 4c 4c |le temp|H = NULL|
|00005a80| 20 3b 0a 73 68 6f 72 74 | 20 65 72 72 20 3b 0a 46 | ;.short| err ;.F|
|00005a90| 53 53 70 65 63 20 66 73 | 20 3d 20 2a 20 66 73 73 |SSpec fs| = * fss|
|00005aa0| 20 3b 0a 0a 09 77 68 69 | 6c 65 20 28 20 66 73 20 | ;...whi|le ( fs |
|00005ab0| 2e 20 70 61 72 49 44 20 | 3e 20 31 20 29 20 7b 0a |. parID |> 1 ) {.|
|00005ac0| 09 09 74 65 6d 70 48 20 | 3d 20 4e 55 4c 4c 20 3b |..tempH |= NULL ;|
|00005ad0| 0a 09 09 50 74 72 54 6f | 48 61 6e 64 20 28 20 26 |...PtrTo|Hand ( &|
|00005ae0| 20 66 73 20 2e 20 6e 61 | 6d 65 20 5b 20 31 20 5d | fs . na|me [ 1 ]|
|00005af0| 20 2c 20 26 20 74 65 6d | 70 48 20 2c 20 66 73 20 | , & tem|pH , fs |
|00005b00| 2e 20 6e 61 6d 65 20 5b | 20 30 20 5d 20 29 20 3b |. name [| 0 ] ) ;|
|00005b10| 0a 09 09 50 74 72 41 6e | 64 48 61 6e 64 20 28 20 |...PtrAn|dHand ( |
|00005b20| 28 20 76 6f 69 64 20 2a | 20 29 20 22 3a 22 20 2c |( void *| ) ":" ,|
|00005b30| 20 74 65 6d 70 48 20 2c | 20 31 20 29 20 3b 0a 09 | tempH ,| 1 ) ;..|
|00005b40| 09 48 61 6e 64 41 6e 64 | 48 61 6e 64 20 28 20 2a |.HandAnd|Hand ( *|
|00005b50| 20 68 20 2c 20 74 65 6d | 70 48 20 29 20 3b 0a 09 | h , tem|pH ) ;..|
|00005b60| 09 53 65 74 48 61 6e 64 | 6c 65 53 69 7a 65 20 28 |.SetHand|leSize (|
|00005b70| 20 2a 20 68 20 2c 20 30 | 4c 20 29 20 3b 0a 09 09 | * h , 0|L ) ;...|
|00005b80| 48 61 6e 64 41 6e 64 48 | 61 6e 64 20 28 20 74 65 |HandAndH|and ( te|
|00005b90| 6d 70 48 20 2c 20 2a 20 | 68 20 29 20 3b 0a 09 09 |mpH , * |h ) ;...|
|00005ba0| 44 69 73 70 6f 73 65 48 | 61 6e 64 6c 65 20 28 20 |DisposeH|andle ( |
|00005bb0| 74 65 6d 70 48 20 29 20 | 3b 0a 09 09 74 65 6d 70 |tempH ) |;...temp|
|00005bc0| 48 20 3d 20 4e 55 4c 4c | 20 3b 20 0a 09 09 47 65 |H = NULL| ; ...Ge|
|00005bd0| 74 46 6f 6c 64 65 72 50 | 61 72 65 6e 74 20 28 20 |tFolderP|arent ( |
|00005be0| 26 20 66 73 20 2c 20 26 | 20 73 53 70 65 63 20 29 |& fs , &| sSpec )|
|00005bf0| 20 3b 0a 09 09 66 73 20 | 3d 20 73 53 70 65 63 20 | ;...fs |= sSpec |
|00005c00| 3b 0a 09 7d 0a 09 47 65 | 74 56 6f 6c 4e 61 6d 65 |;..}..Ge|tVolName|
|00005c10| 20 28 20 66 73 09 2e 20 | 76 52 65 66 4e 75 6d 20 | ( fs.. |vRefNum |
|00005c20| 2c 20 66 73 20 2e 20 6e | 61 6d 65 20 29 20 3b 0a |, fs . n|ame ) ;.|
|00005c30| 09 50 74 72 54 6f 48 61 | 6e 64 20 28 20 26 20 66 |.PtrToHa|nd ( & f|
|00005c40| 73 20 2e 20 6e 61 6d 65 | 20 5b 20 31 20 5d 20 2c |s . name| [ 1 ] ,|
|00005c50| 20 26 20 74 65 6d 70 48 | 20 2c 20 66 73 20 2e 20 | & tempH| , fs . |
|00005c60| 6e 61 6d 65 20 5b 20 30 | 20 5d 20 29 20 3b 0a 09 |name [ 0| ] ) ;..|
|00005c70| 50 74 72 41 6e 64 48 61 | 6e 64 20 28 20 28 20 76 |PtrAndHa|nd ( ( v|
|00005c80| 6f 69 64 20 2a 20 29 20 | 22 3a 22 20 2c 20 74 65 |oid * ) |":" , te|
|00005c90| 6d 70 48 20 2c 20 31 20 | 29 20 3b 0a 09 48 61 6e |mpH , 1 |) ;..Han|
|00005ca0| 64 41 6e 64 48 61 6e 64 | 20 28 20 2a 20 68 20 2c |dAndHand| ( * h ,|
|00005cb0| 20 74 65 6d 70 48 20 29 | 20 3b 0a 09 53 65 74 48 | tempH )| ;..SetH|
|00005cc0| 61 6e 64 6c 65 53 69 7a | 65 20 28 20 2a 20 68 20 |andleSiz|e ( * h |
|00005cd0| 2c 20 30 4c 20 29 20 3b | 0a 09 48 61 6e 64 41 6e |, 0L ) ;|..HandAn|
|00005ce0| 64 48 61 6e 64 20 28 20 | 74 65 6d 70 48 20 2c 20 |dHand ( |tempH , |
|00005cf0| 2a 20 68 20 29 20 3b 0a | 09 44 69 73 70 6f 73 65 |* h ) ;.|.Dispose|
|00005d00| 48 61 6e 64 6c 65 20 28 | 20 74 65 6d 70 48 20 29 |Handle (| tempH )|
|00005d10| 20 3b 0a 09 74 65 6d 70 | 48 20 3d 20 4e 55 4c 4c | ;..temp|H = NULL|
|00005d20| 20 3b 0a 09 69 66 20 28 | 20 21 20 49 73 46 6f 6c | ;..if (| ! IsFol|
|00005d30| 64 65 72 20 28 20 66 73 | 73 20 29 20 29 20 7b 0a |der ( fs|s ) ) {.|
|00005d40| 09 53 65 74 48 61 6e 64 | 6c 65 53 69 7a 65 20 28 |.SetHand|leSize (|
|00005d50| 20 2a 20 68 20 2c 20 47 | 65 74 48 61 6e 64 6c 65 | * h , G|etHandle|
|00005d60| 53 69 7a 65 20 28 20 2a | 20 68 20 29 20 2d 20 31 |Size ( *| h ) - 1|
|00005d70| 20 29 20 3b 20 2f 2f 20 | 52 65 6d 6f 76 65 20 63 | ) ; // |Remove c|
|00005d80| 6f 6c 6f 6e 20 7d 0a 09 | 72 65 74 75 72 6e 20 30 |olon }..|return 0|
|00005d90| 20 3b 0a 7d 0a 2a 65 6e | 64 2a 0a 0a 31 2e 38 29 | ;.}.*en|d*..1.8)|
|00005da0| 20 51 3a 20 53 6f 20 68 | 6f 77 20 64 6f 20 49 20 | Q: So h|ow do I |
|00005db0| 67 65 74 20 74 68 65 20 | 6e 61 6d 65 73 20 6f 66 |get the |names of|
|00005dc0| 20 74 68 65 20 66 69 6c | 65 73 20 69 6e 20 61 20 | the fil|es in a |
|00005dd0| 64 69 72 65 63 74 6f 72 | 79 3f 20 0a 0a 41 3a 20 |director|y? ..A: |
|00005de0| 59 6f 75 20 75 73 65 20 | 50 42 47 65 74 43 61 74 |You use |PBGetCat|
|00005df0| 49 6e 66 6f 20 61 67 61 | 69 6e 2c 20 62 75 74 20 |Info aga|in, but |
|00005e00| 74 68 69 73 20 74 69 6d | 65 20 79 6f 75 20 73 65 |this tim|e you se|
|00005e10| 74 20 69 6f 46 44 69 72 | 49 6e 64 65 78 20 0a 74 |t ioFDir|Index .t|
|00005e20| 6f 20 31 20 6f 72 20 6d | 6f 72 65 20 28 79 6f 75 |o 1 or m|ore (you|
|00005e30| 20 6e 65 65 64 20 74 6f | 20 6b 6e 6f 77 20 74 68 | need to| know th|
|00005e40| 65 20 64 69 72 49 44 20 | 61 6e 64 20 76 52 65 66 |e dirID |and vRef|
|00005e50| 4e 75 6d 20 6f 66 20 74 | 68 65 20 0a 0a 66 6f 6c |Num of t|he ..fol|
|00005e60| 64 65 72 20 79 6f 75 27 | 72 65 20 69 6e 74 65 72 |der you'|re inter|
|00005e70| 65 73 74 65 64 20 69 6e | 29 20 59 6f 75 20 74 68 |ested in|) You th|
|00005e80| 65 6e 20 63 61 6c 6c 20 | 50 42 47 65 74 43 61 74 |en call |PBGetCat|
|00005e90| 49 6e 66 6f 53 79 6e 63 | 20 66 6f 72 20 0a 76 61 |InfoSync| for .va|
|00005ea0| 6c 75 65 73 20 6f 66 20 | 69 6f 46 44 69 72 49 6e |lues of |ioFDirIn|
|00005eb0| 64 65 78 20 66 72 6f 6d | 20 31 20 61 6e 64 20 75 |dex from| 1 and u|
|00005ec0| 70 2c 20 75 6e 74 69 6c | 20 79 6f 75 20 67 65 74 |p, until| you get|
|00005ed0| 20 61 6e 20 66 6e 66 45 | 72 72 2e 20 0a 41 6e 79 | an fnfE|rr. .Any|
|00005ee0| 20 6f 74 68 65 72 20 65 | 72 72 20 6d 65 61 6e 73 | other e|rr means|
|00005ef0| 20 79 6f 75 20 61 72 65 | 20 6e 6f 74 20 61 6c 6c | you are| not all|
|00005f00| 6f 77 65 64 20 74 6f 20 | 67 65 74 20 69 6e 66 6f |owed to |get info|
|00005f10| 20 61 62 6f 75 74 20 54 | 48 41 54 20 0a 69 74 65 | about T|HAT .ite|
|00005f20| 6d 2c 20 62 75 74 20 79 | 6f 75 20 6d 61 79 20 62 |m, but y|ou may b|
|00005f30| 65 20 66 6f 72 20 74 68 | 65 20 6e 65 78 74 2e 20 |e for th|e next. |
|00005f40| 54 68 65 6e 20 63 6f 6c | 6c 65 63 74 20 74 68 65 |Then col|lect the|
|00005f50| 20 6e 61 6d 65 73 20 69 | 6e 20 74 68 65 20 0a 73 | names i|n the .s|
|00005f60| 74 72 69 6e 67 20 79 6f | 75 20 6d 61 64 65 20 69 |tring yo|u made i|
|00005f70| 6f 4e 61 6d 65 50 74 72 | 20 70 6f 69 6e 74 20 74 |oNamePtr| point t|
|00005f80| 6f 20 61 73 20 79 6f 75 | 20 67 6f 20 61 6c 6f 6e |o as you| go alon|
|00005f90| 67 2e 20 4e 6f 74 65 20 | 74 68 61 74 20 0a 79 6f |g. Note |that .yo|
|00005fa0| 75 20 6e 65 65 64 20 74 | 6f 20 66 69 6c 6c 20 69 |u need t|o fill i|
|00005fb0| 6e 20 74 68 65 20 69 6f | 44 69 72 49 44 20 66 69 |n the io|DirID fi|
|00005fc0| 65 6c 64 20 66 6f 72 20 | 65 61 63 68 20 69 74 65 |eld for |each ite|
|00005fd0| 72 61 74 69 6f 6e 20 74 | 68 72 6f 75 67 68 20 0a |ration t|hrough .|
|00005fe0| 74 68 65 20 6c 6f 6f 70 | 2c 20 61 6e 64 20 70 72 |the loop|, and pr|
|00005ff0| 65 66 65 72 72 61 62 6c | 79 20 63 6c 65 61 72 20 |eferrabl|y clear |
|00006000| 74 68 65 20 69 6f 46 56 | 65 72 73 4e 75 6d 20 61 |the ioFV|ersNum a|
|00006010| 73 20 77 65 6c 6c 2e 20 | 0a 0a 4e 6f 74 65 20 74 |s well. |..Note t|
|00006020| 68 61 74 20 74 68 65 20 | 63 6f 6e 74 65 6e 74 73 |hat the |contents|
|00006030| 20 6f 66 20 61 20 64 69 | 72 65 63 74 6f 72 79 20 | of a di|rectory |
|00006040| 6d 61 79 20 76 65 72 79 | 20 77 65 6c 6c 20 63 68 |may very| well ch|
|00006050| 61 6e 67 65 20 77 68 69 | 6c 65 20 0a 79 6f 75 20 |ange whi|le .you |
|00006060| 61 72 65 20 69 74 65 72 | 61 74 69 6e 67 20 6f 76 |are iter|ating ov|
|00006070| 65 72 20 69 74 3b 20 74 | 68 69 73 20 69 73 20 6d |er it; t|his is m|
|00006080| 6f 73 74 20 6c 69 6b 65 | 6c 79 20 6f 6e 20 61 20 |ost like|ly on a |
|00006090| 66 69 6c 65 20 73 65 72 | 76 65 72 20 0a 74 68 61 |file ser|ver .tha|
|000060a0| 74 20 6d 6f 72 65 20 74 | 68 61 6e 20 6f 6e 65 20 |t more t|han one |
|000060b0| 75 73 65 72 20 75 73 65 | 73 2c 20 6f 72 20 75 6e |user use|s, or un|
|000060c0| 64 65 72 20 53 79 73 74 | 65 6d 20 37 20 77 68 65 |der Syst|em 7 whe|
|000060d0| 72 65 20 79 6f 75 20 72 | 75 6e 20 0a 50 65 72 73 |re you r|un .Pers|
|000060e0| 6f 6e 61 6c 20 46 69 6c | 65 20 53 68 61 72 65 2e |onal Fil|e Share.|
|000060f0| 20 0a 0a 31 2e 39 29 20 | 51 3a 20 48 6f 77 20 64 | ..1.9) |Q: How d|
|00006100| 6f 20 49 20 66 69 6e 64 | 20 74 68 65 20 6e 61 6d |o I find| the nam|
|00006110| 65 20 6f 66 20 61 20 66 | 6f 6c 64 65 72 20 66 6f |e of a f|older fo|
|00006120| 72 20 77 68 69 63 68 20 | 49 20 6f 6e 6c 79 20 6b |r which |I only k|
|00006130| 6e 6f 77 20 0a 74 68 65 | 20 64 69 72 49 44 20 61 |now .the| dirID a|
|00006140| 6e 64 20 76 52 65 66 4e | 75 6d 3f 20 0a 0a 41 3a |nd vRefN|um? ..A:|
|00006150| 20 59 6f 75 20 63 61 6c | 6c 20 28 73 75 72 70 72 | You cal|l (surpr|
|00006160| 69 73 65 21 29 20 50 42 | 47 65 74 43 61 74 49 6e |ise!) PB|GetCatIn|
|00006170| 66 6f 21 20 4d 61 6b 65 | 20 69 6f 4e 61 6d 65 50 |fo! Make| ioNameP|
|00006180| 74 72 20 70 6f 69 6e 74 | 20 74 6f 20 61 6e 20 0a |tr point| to an .|
|00006190| 65 6d 70 74 79 20 73 74 | 72 69 6e 67 20 28 62 75 |empty st|ring (bu|
|000061a0| 74 20 4e 4f 54 20 4e 55 | 4c 4c 29 20 6f 66 20 6c |t NOT NU|LL) of l|
|000061b0| 65 6e 67 74 68 20 36 33 | 20 28 6c 69 6b 65 2c 20 |ength 63| (like, |
|000061c0| 61 6e 20 53 74 72 36 33 | 29 20 61 6e 64 20 0a 69 |an Str63|) and .i|
|000061d0| 6f 46 44 69 72 49 6e 64 | 65 78 20 6e 65 67 61 74 |oFDirInd|ex negat|
|000061e0| 69 76 65 20 28 2d 31 20 | 69 73 20 61 20 67 69 76 |ive (-1 |is a giv|
|000061f0| 65 6e 20 77 69 6e 6e 65 | 72 29 20 2d 20 74 68 69 |en winne|r) - thi|
|00006200| 73 20 6d 61 6b 65 73 20 | 0a 50 42 47 65 74 43 61 |s makes |.PBGetCa|
|00006210| 74 49 6e 66 6f 20 72 65 | 74 75 72 6e 20 69 6e 66 |tInfo re|turn inf|
|00006220| 6f 72 6d 61 74 69 6f 6e | 20 61 62 6f 75 74 20 74 |ormation| about t|
|00006230| 68 65 20 76 52 65 66 4e | 75 6d 2f 64 69 72 49 44 |he vRefN|um/dirID|
|00006240| 20 66 6f 6c 64 65 72 20 | 0a 69 6e 73 74 65 61 64 | folder |.instead|
|00006250| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 2f 66 6f 6c | of the |file/fol|
|00006260| 64 65 72 20 73 70 65 63 | 69 66 69 65 64 20 62 79 |der spec|ified by|
|00006270| 20 76 52 65 66 4e 75 6d | 2c 20 70 61 72 49 44 20 | vRefNum|, parID |
|00006280| 61 6e 64 20 6e 61 6d 65 | 2e 20 0a 0a 31 2e 31 30 |and name|. ..1.10|
|00006290| 29 20 51 3a 20 48 6f 77 | 20 64 6f 20 49 20 6d 61 |) Q: How| do I ma|
|000062a0| 6b 65 20 74 68 65 20 46 | 69 6e 64 65 72 20 73 65 |ke the F|inder se|
|000062b0| 65 20 61 20 6e 65 77 20 | 66 69 6c 65 20 74 68 61 |e a new |file tha|
|000062c0| 74 20 49 20 63 72 65 61 | 74 65 64 3f 20 0a 4f 72 |t I crea|ted? .Or|
|000062d0| 20 69 66 20 49 20 63 68 | 61 6e 67 65 64 20 74 68 | if I ch|anged th|
|000062e0| 65 20 74 79 70 65 20 6f | 66 20 69 74 3b 20 68 6f |e type o|f it; ho|
|000062f0| 77 20 64 6f 20 49 20 64 | 69 73 70 6c 61 79 20 61 |w do I d|isplay a|
|00006300| 20 6e 65 77 20 69 63 6f | 6e 20 66 6f 72 20 0a 69 | new ico|n for .i|
|00006310| 74 3f 20 0a 0a 41 3a 20 | 59 6f 75 20 63 61 6c 6c |t? ..A: |You call|
|00006320| 20 28 73 75 72 70 72 69 | 73 65 21 29 20 50 42 47 | (surpri|se!) PBG|
|00006330| 65 74 43 61 74 49 6e 66 | 6f 20 66 6f 6c 6c 6f 77 |etCatInf|o follow|
|00006340| 65 64 20 62 79 20 50 42 | 53 65 74 43 61 74 49 6e |ed by PB|SetCatIn|
|00006350| 66 6f 20 0a 66 6f 72 20 | 74 68 65 20 46 4f 4c 44 |fo .for |the FOLD|
|00006360| 45 52 20 74 68 65 20 66 | 69 6c 65 20 69 73 20 69 |ER the f|ile is i|
|00006370| 6e 2e 20 49 6e 62 65 74 | 77 65 65 6e 2c 20 79 6f |n. Inbet|ween, yo|
|00006380| 75 20 73 68 6f 75 6c 64 | 20 73 65 74 20 0a 69 6f |u should| set .io|
|00006390| 44 72 4d 64 44 61 74 20 | 74 6f 20 74 68 65 20 63 |DrMdDat |to the c|
|000063a0| 75 72 72 65 6e 74 20 64 | 61 74 65 26 74 69 6d 65 |urrent d|ate&time|
|000063b0| 2e 20 43 6f 64 65 3a 20 | 0a 0a 2a 63 6f 64 65 2a |. Code: |..*code*|
|000063c0| 0a 4f 53 45 72 72 0a 54 | 6f 75 63 68 46 6f 6c 64 |.OSErr.T|ouchFold|
|000063d0| 65 72 20 28 20 73 68 6f | 72 74 20 76 52 65 66 4e |er ( sho|rt vRefN|
|000063e0| 75 6d 20 2c 20 6c 6f 6e | 67 20 70 61 72 49 44 20 |um , lon|g parID |
|000063f0| 29 20 7b 0a 0a 43 49 6e | 66 6f 50 42 52 65 63 20 |) {..CIn|foPBRec |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.